Class: GSGraph::BroadTargetingCategory

Inherits:
Node
  • Object
show all
Defined in:
lib/gs_graph/broad_targeting_category.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(identifier, attributes = {}) ⇒ BroadTargetingCategory

Returns a new instance of BroadTargetingCategory.



5
6
7
8
9
10
11
# File 'lib/gs_graph/broad_targeting_category.rb', line 5

def initialize(identifier, attributes = {})
  super

  %w(name parent_category).each do |field|
    self.send("#{field}=", attributes[field.to_sym])
  end
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#parent_categoryObject

Returns the value of attribute parent_category.



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

def parent_category
  @parent_category
end