Class: ConvenientService::Examples::Standard::V1::RequestParams::Entities::Description
- Inherits:
-
Object
- Object
- ConvenientService::Examples::Standard::V1::RequestParams::Entities::Description
- Defined in:
- lib/convenient_service/examples/standard/v1/request_params/entities/description.rb
Class Method Summary collapse
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(value:) ⇒ Description
constructor
A new instance of Description.
- #to_s ⇒ Object
Constructor Details
#initialize(value:) ⇒ Description
Returns a new instance of Description.
10 11 12 |
# File 'lib/convenient_service/examples/standard/v1/request_params/entities/description.rb', line 10 def initialize(value:) @value = value end |
Class Method Details
.cast(value) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/convenient_service/examples/standard/v1/request_params/entities/description.rb', line 15 def cast(value) case value when ::String new(value: value.to_s) end end |
Instance Method Details
#==(other) ⇒ Object
23 24 25 26 27 |
# File 'lib/convenient_service/examples/standard/v1/request_params/entities/description.rb', line 23 def ==(other) return unless other.instance_of?(self.class) value == other.value end |
#to_s ⇒ Object
29 30 31 |
# File 'lib/convenient_service/examples/standard/v1/request_params/entities/description.rb', line 29 def to_s value end |