Class: Maidcafe::Category

Inherits:
ResultItem show all
Defined in:
lib/ruby-maidcafe.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ResultItem

#element_text, #initialize, #read, #to_s

Constructor Details

This class inherits a constructor from Maidcafe::ResultItem

Instance Attribute Details

#cidObject

Returns the value of attribute cid.



221
222
223
# File 'lib/ruby-maidcafe.rb', line 221

def cid
  @cid
end

#nameObject

Returns the value of attribute name.



221
222
223
# File 'lib/ruby-maidcafe.rb', line 221

def name
  @name
end

Instance Method Details

#attr_to_tagObject



222
# File 'lib/ruby-maidcafe.rb', line 222

def attr_to_tag; {:name => 'category', :cid => 'cid'} end

#idObject



223
# File 'lib/ruby-maidcafe.rb', line 223

def id; cid end