Class: ConvenientService::Examples::Standard::RequestParams::Services::ValidateUncastedParams

Inherits:
Object
  • Object
show all
Includes:
Service::Configs::Standard
Defined in:
lib/convenient_service/examples/standard/request_params/services/validate_uncasted_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Service::Configs::Standard

service?, service_class?

Methods included from Config

included

Constructor Details

#initialize(params:) ⇒ ValidateUncastedParams

Returns a new instance of ValidateUncastedParams.



23
24
25
26
27
28
29
30
# File 'lib/convenient_service/examples/standard/request_params/services/validate_uncasted_params.rb', line 23

def initialize(params:)
  @id = params[:id]
  @format = params[:format]
  @title = params[:title]
  @description = params[:description]
  @tags = params[:tags]
  @sources = params[:sources]
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



16
17
18
# File 'lib/convenient_service/examples/standard/request_params/services/validate_uncasted_params.rb', line 16

def description
  @description
end

#formatObject (readonly)

Returns the value of attribute format.



16
17
18
# File 'lib/convenient_service/examples/standard/request_params/services/validate_uncasted_params.rb', line 16

def format
  @format
end

#idObject (readonly)

Returns the value of attribute id.



16
17
18
# File 'lib/convenient_service/examples/standard/request_params/services/validate_uncasted_params.rb', line 16

def id
  @id
end

#sourcesObject (readonly)

Returns the value of attribute sources.



16
17
18
# File 'lib/convenient_service/examples/standard/request_params/services/validate_uncasted_params.rb', line 16

def sources
  @sources
end

#tagsObject (readonly)

Returns the value of attribute tags.



16
17
18
# File 'lib/convenient_service/examples/standard/request_params/services/validate_uncasted_params.rb', line 16

def tags
  @tags
end

#titleObject (readonly)

Returns the value of attribute title.



16
17
18
# File 'lib/convenient_service/examples/standard/request_params/services/validate_uncasted_params.rb', line 16

def title
  @title
end