Class: Srchio::Tag
- Inherits:
-
Object
- Object
- Srchio::Tag
- Defined in:
- lib/srchio/tag.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
Returns the value of attribute count.
-
#tag ⇒ Object
Returns the value of attribute tag.
Instance Method Summary collapse
-
#initialize(result = {}) ⇒ Tag
constructor
A new instance of Tag.
Constructor Details
#initialize(result = {}) ⇒ Tag
Returns a new instance of Tag.
5 6 7 8 |
# File 'lib/srchio/tag.rb', line 5 def initialize(result={}) @tag = result['tag'] @count = result['count'] end |
Instance Attribute Details
#count ⇒ Object
Returns the value of attribute count.
3 4 5 |
# File 'lib/srchio/tag.rb', line 3 def count @count end |
#tag ⇒ Object
Returns the value of attribute tag.
3 4 5 |
# File 'lib/srchio/tag.rb', line 3 def tag @tag end |