Class: GSGraph::AdPreview

Inherits:
Node
  • Object
show all
Defined in:
lib/gs_graph/ad_preview.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#access_token, #endpoint, #identifier, #raw_attributes

Instance Method Summary collapse

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/gs_graph/ad_preview.rb', line 5

def initialize(attributes = {})
  super
  self.preview_data = Collection.new(attributes).first
end

Instance Attribute Details

#preview_dataObject

Returns the value of attribute preview_data.



3
4
5
# File 'lib/gs_graph/ad_preview.rb', line 3

def preview_data
  @preview_data
end