Class: Kiita::Tag
Constant Summary collapse
- @@attributes =
%w[name icon_url item_count follower_count following]
Instance Attribute Summary collapse
-
#url_name ⇒ Object
readonly
Returns the value of attribute url_name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(url_name, options = {}) ⇒ Tag
constructor
A new instance of Tag.
- #posts(options = {}) ⇒ Object
Methods included from Model
Constructor Details
#initialize(url_name, options = {}) ⇒ Tag
Returns a new instance of Tag.
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/kiita/tag.rb', line 11 def initialize(url_name, = {}) if url_name.is_a?(Hash) = url_name @url_name = ["url_name"] else @url_name = url_name end super() end |
Instance Attribute Details
#url_name ⇒ Object (readonly)
Returns the value of attribute url_name.
4 5 6 |
# File 'lib/kiita/tag.rb', line 4 def url_name @url_name end |