Class: ConvenientService::Examples::Standard::RequestParams::Services::ValidateCastedParams
- Inherits:
-
Object
- Object
- ConvenientService::Examples::Standard::RequestParams::Services::ValidateCastedParams
- Includes:
- Service::Configs::Standard
- Defined in:
- lib/convenient_service/examples/standard/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.
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_description ⇒ Object (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_format ⇒ Object (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_id ⇒ Object (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_sources ⇒ Object (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_tags ⇒ Object (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 end |
#casted_title ⇒ Object (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_description ⇒ Object (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_format ⇒ Object (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_id ⇒ Object (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_sources ⇒ Object (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_tags ⇒ Object (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 end |
#original_title ⇒ Object (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 |