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

Constructor Details

#initialize(params:) ⇒ ValidateUncastedParams

Returns a new instance of ValidateUncastedParams.



18
19
20
21
22
23
24
25
# File 'lib/convenient_service/examples/standard/request_params/services/validate_uncasted_params.rb', line 18

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.



11
12
13
# File 'lib/convenient_service/examples/standard/request_params/services/validate_uncasted_params.rb', line 11

def description
  @description
end

#formatObject (readonly)

Returns the value of attribute format.



11
12
13
# File 'lib/convenient_service/examples/standard/request_params/services/validate_uncasted_params.rb', line 11

def format
  @format
end

#idObject (readonly)

Returns the value of attribute id.



11
12
13
# File 'lib/convenient_service/examples/standard/request_params/services/validate_uncasted_params.rb', line 11

def id
  @id
end

#sourcesObject (readonly)

Returns the value of attribute sources.



11
12
13
# File 'lib/convenient_service/examples/standard/request_params/services/validate_uncasted_params.rb', line 11

def sources
  @sources
end

#tagsObject (readonly)

Returns the value of attribute tags.



11
12
13
# File 'lib/convenient_service/examples/standard/request_params/services/validate_uncasted_params.rb', line 11

def tags
  @tags
end

#titleObject (readonly)

Returns the value of attribute title.



11
12
13
# File 'lib/convenient_service/examples/standard/request_params/services/validate_uncasted_params.rb', line 11

def title
  @title
end