Class: ConvenientService::Examples::Standard::V1::RequestParams::Services::ValidateCastedParams
- Inherits:
-
Object
- Object
- ConvenientService::Examples::Standard::V1::RequestParams::Services::ValidateCastedParams
- Includes:
- Service::Configs::Standard::V1
- Defined in:
- lib/convenient_service/examples/standard/v1/request_params/services/validate_casted_params.rb
Instance Attribute Summary collapse
-
#casted_description ⇒ Object
readonly
Returns the value of attribute casted_description.
-
#casted_format ⇒ Object
readonly
Returns the value of attribute casted_format.
-
#casted_id ⇒ Object
readonly
Returns the value of attribute casted_id.
-
#casted_sources ⇒ Object
readonly
Returns the value of attribute casted_sources.
-
#casted_tags ⇒ Object
readonly
Returns the value of attribute casted_tags.
-
#casted_title ⇒ Object
readonly
Returns the value of attribute casted_title.
-
#original_description ⇒ Object
readonly
Returns the value of attribute original_description.
-
#original_format ⇒ Object
readonly
Returns the value of attribute original_format.
-
#original_id ⇒ Object
readonly
Returns the value of attribute original_id.
-
#original_sources ⇒ Object
readonly
Returns the value of attribute original_sources.
-
#original_tags ⇒ Object
readonly
Returns the value of attribute original_tags.
-
#original_title ⇒ Object
readonly
Returns the value of attribute original_title.
Instance Method Summary collapse
-
#initialize(original_params:, casted_params:) ⇒ ValidateCastedParams
constructor
A new instance of ValidateCastedParams.
Constructor Details
#initialize(original_params:, casted_params:) ⇒ ValidateCastedParams
Returns a new instance of ValidateCastedParams.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/convenient_service/examples/standard/v1/request_params/services/validate_casted_params.rb', line 35 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_description ⇒ Object (readonly)
Returns the value of attribute casted_description.
20 21 22 |
# File 'lib/convenient_service/examples/standard/v1/request_params/services/validate_casted_params.rb', line 20 def casted_description @casted_description end |
#casted_format ⇒ Object (readonly)
Returns the value of attribute casted_format.
20 21 22 |
# File 'lib/convenient_service/examples/standard/v1/request_params/services/validate_casted_params.rb', line 20 def casted_format @casted_format end |
#casted_id ⇒ Object (readonly)
Returns the value of attribute casted_id.
20 21 22 |
# File 'lib/convenient_service/examples/standard/v1/request_params/services/validate_casted_params.rb', line 20 def casted_id @casted_id end |
#casted_sources ⇒ Object (readonly)
Returns the value of attribute casted_sources.
20 21 22 |
# File 'lib/convenient_service/examples/standard/v1/request_params/services/validate_casted_params.rb', line 20 def casted_sources @casted_sources end |
#casted_tags ⇒ Object (readonly)
Returns the value of attribute casted_tags.
20 21 22 |
# File 'lib/convenient_service/examples/standard/v1/request_params/services/validate_casted_params.rb', line 20 def @casted_tags end |
#casted_title ⇒ Object (readonly)
Returns the value of attribute casted_title.
20 21 22 |
# File 'lib/convenient_service/examples/standard/v1/request_params/services/validate_casted_params.rb', line 20 def casted_title @casted_title end |
#original_description ⇒ Object (readonly)
Returns the value of attribute original_description.
12 13 14 |
# File 'lib/convenient_service/examples/standard/v1/request_params/services/validate_casted_params.rb', line 12 def original_description @original_description end |
#original_format ⇒ Object (readonly)
Returns the value of attribute original_format.
12 13 14 |
# File 'lib/convenient_service/examples/standard/v1/request_params/services/validate_casted_params.rb', line 12 def original_format @original_format end |
#original_id ⇒ Object (readonly)
Returns the value of attribute original_id.
12 13 14 |
# File 'lib/convenient_service/examples/standard/v1/request_params/services/validate_casted_params.rb', line 12 def original_id @original_id end |
#original_sources ⇒ Object (readonly)
Returns the value of attribute original_sources.
12 13 14 |
# File 'lib/convenient_service/examples/standard/v1/request_params/services/validate_casted_params.rb', line 12 def original_sources @original_sources end |
#original_tags ⇒ Object (readonly)
Returns the value of attribute original_tags.
12 13 14 |
# File 'lib/convenient_service/examples/standard/v1/request_params/services/validate_casted_params.rb', line 12 def @original_tags end |
#original_title ⇒ Object (readonly)
Returns the value of attribute original_title.
12 13 14 |
# File 'lib/convenient_service/examples/standard/v1/request_params/services/validate_casted_params.rb', line 12 def original_title @original_title end |