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

- (Object) description

Returns the value of attribute description



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

def description
  @description
end

- (Object) image

Returns the value of attribute image



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

def image
  @image
end

- (Object) label

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

- (Object) sublabel

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

- (Object) to_json



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