Class: ConvenientService::Examples::Standard::RequestParams::Entities::Tag
- Inherits:
-
Object
- Object
- ConvenientService::Examples::Standard::RequestParams::Entities::Tag
- Defined in:
- lib/convenient_service/examples/standard/request_params/entities/tag.rb
Class Method Summary collapse
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(value:) ⇒ Tag
constructor
A new instance of Tag.
- #to_s ⇒ Object
Constructor Details
#initialize(value:) ⇒ Tag
Returns a new instance of Tag.
14 15 16 |
# File 'lib/convenient_service/examples/standard/request_params/entities/tag.rb', line 14 def initialize(value:) @value = value end |
Class Method Details
.cast(value) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/convenient_service/examples/standard/request_params/entities/tag.rb', line 19 def cast(value) case value when ::String new(value: value.to_s) end end |
Instance Method Details
#==(other) ⇒ Object
27 28 29 30 31 |
# File 'lib/convenient_service/examples/standard/request_params/entities/tag.rb', line 27 def ==(other) return unless other.instance_of?(self.class) value == other.value end |
#to_s ⇒ Object
33 34 35 |
# File 'lib/convenient_service/examples/standard/request_params/entities/tag.rb', line 33 def to_s value end |