Class: FbGraph::Subscription
- Inherits:
-
Object
- Object
- FbGraph::Subscription
- Includes:
- Comparison
- Defined in:
- lib/fb_graph/subscription.rb
Instance Attribute Summary (collapse)
-
- (Object) active
Returns the value of attribute active.
-
- (Object) callback_url
Returns the value of attribute callback_url.
-
- (Object) fields
Returns the value of attribute fields.
-
- (Object) object
Returns the value of attribute object.
Instance Method Summary (collapse)
-
- (Subscription) initialize(attributes = {})
constructor
A new instance of Subscription.
Methods included from Comparison
Constructor Details
- (Subscription) initialize(attributes = {})
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 |