Class: Srchio::Tag

Inherits:
Object
  • Object
show all
Defined in:
lib/srchio/tag.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#countObject

Returns the value of attribute count.



3
4
5
# File 'lib/srchio/tag.rb', line 3

def count
  @count
end

#tagObject

Returns the value of attribute tag.



3
4
5
# File 'lib/srchio/tag.rb', line 3

def tag
  @tag
end