Class: FbGraph::Subscription
- Inherits:
-
Object
- Object
- FbGraph::Subscription
- Includes:
- Comparison
- Defined in:
- lib/fb_graph/subscription.rb
Instance Attribute Summary collapse
-
#active ⇒ Object
Returns the value of attribute active.
-
#callback_url ⇒ Object
Returns the value of attribute callback_url.
-
#fields ⇒ Object
Returns the value of attribute fields.
-
#object ⇒ Object
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Subscription
constructor
A new instance of Subscription.
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
#active ⇒ Object
Returns the value of attribute active.
5 6 7 |
# File 'lib/fb_graph/subscription.rb', line 5 def active @active end |
#callback_url ⇒ Object
Returns the value of attribute callback_url.
5 6 7 |
# File 'lib/fb_graph/subscription.rb', line 5 def callback_url @callback_url end |
#fields ⇒ Object
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 |