Class: Facebooker::InfoSection

Inherits:
Object
  • Object
show all
Includes:
Model
Defined in:
lib/facebooker/models/info_section.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

#fieldObject

Returns the value of attribute field.



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

def field
  @field
end

#itemsObject

Returns the value of attribute items.



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

def items
  @items
end

Instance Method Details

#to_jsonObject



6
7
8
# File 'lib/facebooker/models/info_section.rb', line 6

def to_json
  {:field => field, :items => items}.to_json
end