Class: FbGraph::Subscription

Inherits:
Object
  • Object
show all
Includes:
Comparison
Defined in:
lib/fb_graph/subscription.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods included from Comparison

#==

Constructor Details

- (Subscription) initialize(attributes = {})

Returns a new instance of Subscription



7
8
9
10
11
12
# File 'lib/fb_graph/subscription.rb', line 7

def initialize(attributes = {})
  @object       = attributes[:object]
  @fields       = attributes[:fields]
  @callback_url = attributes[:callback_url]
  @active       = attributes[:active]
end

Instance Attribute Details

- (Object) active

Returns the value of attribute active



5
6
7
# File 'lib/fb_graph/subscription.rb', line 5

def active
  @active
end

- (Object) callback_url

Returns the value of attribute callback_url



5
6
7
# File 'lib/fb_graph/subscription.rb', line 5

def callback_url
  @callback_url
end

- (Object) fields

Returns the value of attribute fields



5
6
7
# File 'lib/fb_graph/subscription.rb', line 5

def fields
  @fields
end

- (Object) object

Returns the value of attribute object



5
6
7
# File 'lib/fb_graph/subscription.rb', line 5

def object
  @object
end