Class: FbGraph::AdPreview
Instance Attribute Summary collapse
-
#preview_data ⇒ Object
Returns the value of attribute preview_data.
Attributes inherited from Node
#access_token, #endpoint, #identifier, #raw_attributes
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ AdPreview
constructor
A new instance of AdPreview.
Methods inherited from Node
#connection, #destroy, fetch, #fetch, #update
Methods included from Comparison
Constructor Details
#initialize(attributes = {}) ⇒ AdPreview
Returns a new instance of AdPreview.
5 6 7 8 |
# File 'lib/fb_graph/ad_preview.rb', line 5 def initialize(attributes = {}) super self.preview_data = Collection.new(attributes).first end |
Instance Attribute Details
#preview_data ⇒ Object
Returns the value of attribute preview_data.
3 4 5 |
# File 'lib/fb_graph/ad_preview.rb', line 3 def preview_data @preview_data end |