Class: Facebooker::InfoItem

Inherits:
Object
  • Object
show all
Includes:
Model
Defined in:
lib/facebooker/models/info_item.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Model

#anon=, included, #initialize, #populate, #populate_from_hash!, #populated?, #session

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



4
5
6
# File 'lib/facebooker/models/info_item.rb', line 4

def description
  @description
end

#imageObject

Returns the value of attribute image.



4
5
6
# File 'lib/facebooker/models/info_item.rb', line 4

def image
  @image
end

#labelObject

Returns the value of attribute label.



4
5
6
# File 'lib/facebooker/models/info_item.rb', line 4

def label
  @label
end

Returns the value of attribute link.



4
5
6
# File 'lib/facebooker/models/info_item.rb', line 4

def link
  @link
end

#sublabelObject

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_jsonObject



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