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

#initialize(attributes = {}) ⇒ Subscription

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

#activeObject

Returns the value of attribute active.



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

def active
  @active
end

#callback_urlObject

Returns the value of attribute callback_url.



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

def callback_url
  @callback_url
end

#fieldsObject

Returns the value of attribute fields.



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

def fields
  @fields
end

#objectObject

Returns the value of attribute object.



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

def object
  @object
end