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

- (Object) field

Returns the value of attribute field



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

def field
  @field
end

- (Object) items

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

- (Object) to_json



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

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