Class: MoveToGo::Tag
- Inherits:
-
Object
- Object
- MoveToGo::Tag
- Defined in:
- lib/move-to-go/model/tag.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(val = nil) ⇒ Tag
constructor
A new instance of Tag.
- #serialize_name ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(val = nil) ⇒ Tag
Returns a new instance of Tag.
11 12 13 14 15 |
# File 'lib/move-to-go/model/tag.rb', line 11 def initialize(val=nil) if val @value = val end end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
9 10 11 |
# File 'lib/move-to-go/model/tag.rb', line 9 def value @value end |
Instance Method Details
#==(other) ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/move-to-go/model/tag.rb', line 27 def ==(other) if other.respond_to?(:value) return @value == other.value else return false end end |
#serialize_name ⇒ Object
5 6 7 |
# File 'lib/move-to-go/model/tag.rb', line 5 def serialize_name "Tag" end |
#to_s ⇒ Object
23 24 25 |
# File 'lib/move-to-go/model/tag.rb', line 23 def to_s return "tag: '#{@value}'" end |