Class: ConvenientService::Examples::Standard::RequestParams::Services::ValidateCastedParams

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(original_params:, casted_params:) ⇒ ValidateCastedParams

Returns a new instance of ValidateCastedParams.



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/convenient_service/examples/standard/request_params/services/validate_casted_params.rb', line 34

def initialize(original_params:, casted_params:)
  @original_id = original_params[:id]
  @original_format = original_params[:format]
  @original_title = original_params[:title]
  @original_description = original_params[:description]
  @original_tags = original_params[:tags]
  @original_sources = original_params[:sources]

  @casted_id = casted_params[:id]
  @casted_format = casted_params[:format]
  @casted_title = casted_params[:title]
  @casted_description = casted_params[:description]
  @casted_tags = casted_params[:tags]
  @casted_sources = casted_params[:sources]
end

Instance Attribute Details

#casted_descriptionObject (readonly)

Returns the value of attribute casted_description.



19
20
21
# File 'lib/convenient_service/examples/standard/request_params/services/validate_casted_params.rb', line 19

def casted_description
  @casted_description
end

#casted_formatObject (readonly)

Returns the value of attribute casted_format.



19
20
21
# File 'lib/convenient_service/examples/standard/request_params/services/validate_casted_params.rb', line 19

def casted_format
  @casted_format
end

#casted_idObject (readonly)

Returns the value of attribute casted_id.



19
20
21
# File 'lib/convenient_service/examples/standard/request_params/services/validate_casted_params.rb', line 19

def casted_id
  @casted_id
end

#casted_sourcesObject (readonly)

Returns the value of attribute casted_sources.



19
20
21
# File 'lib/convenient_service/examples/standard/request_params/services/validate_casted_params.rb', line 19

def casted_sources
  @casted_sources
end

#casted_tagsObject (readonly)

Returns the value of attribute casted_tags.



19
20
21
# File 'lib/convenient_service/examples/standard/request_params/services/validate_casted_params.rb', line 19

def casted_tags
  @casted_tags
end

#casted_titleObject (readonly)

Returns the value of attribute casted_title.



19
20
21
# File 'lib/convenient_service/examples/standard/request_params/services/validate_casted_params.rb', line 19

def casted_title
  @casted_title
end

#original_descriptionObject (readonly)

Returns the value of attribute original_description.



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

def original_description
  @original_description
end

#original_formatObject (readonly)

Returns the value of attribute original_format.



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

def original_format
  @original_format
end

#original_idObject (readonly)

Returns the value of attribute original_id.



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

def original_id
  @original_id
end

#original_sourcesObject (readonly)

Returns the value of attribute original_sources.



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

def original_sources
  @original_sources
end

#original_tagsObject (readonly)

Returns the value of attribute original_tags.



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

def original_tags
  @original_tags
end

#original_titleObject (readonly)

Returns the value of attribute original_title.



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

def original_title
  @original_title
end