Class: Facebooker::InfoItem
- Inherits:
-
Object
- Object
- Facebooker::InfoItem
- Includes:
- Model
- Defined in:
- lib/facebooker/models/info_item.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#image ⇒ Object
Returns the value of attribute image.
-
#label ⇒ Object
Returns the value of attribute label.
-
#link ⇒ Object
Returns the value of attribute link.
-
#sublabel ⇒ Object
Returns the value of attribute sublabel.
Instance Method Summary collapse
Methods included from Model
#anon=, included, #initialize, #populate, #populate_from_hash!, #populated?, #session
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/facebooker/models/info_item.rb', line 4 def description @description end |
#image ⇒ Object
Returns the value of attribute image.
4 5 6 |
# File 'lib/facebooker/models/info_item.rb', line 4 def image @image end |
#label ⇒ Object
Returns the value of attribute label.
4 5 6 |
# File 'lib/facebooker/models/info_item.rb', line 4 def label @label end |
#link ⇒ Object
Returns the value of attribute link.
4 5 6 |
# File 'lib/facebooker/models/info_item.rb', line 4 def link @link end |
#sublabel ⇒ Object
Returns the value of attribute sublabel.
4 5 6 |
# File 'lib/facebooker/models/info_item.rb', line 4 def sublabel @sublabel end |
Instance Method Details
#to_json ⇒ Object
6 7 8 |
# File 'lib/facebooker/models/info_item.rb', line 6 def to_json {:label => label, :image => image, :description => description, :link => link, :sublabel => sublabel}.to_json end |