Class: GSGraph::BroadTargetingCategory
- Defined in:
- lib/gs_graph/broad_targeting_category.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#parent_category ⇒ Object
Returns the value of attribute parent_category.
Attributes inherited from Node
#access_token, #endpoint, #identifier, #raw_attributes
Instance Method Summary collapse
-
#initialize(identifier, attributes = {}) ⇒ BroadTargetingCategory
constructor
A new instance of BroadTargetingCategory.
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
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/gs_graph/broad_targeting_category.rb', line 3 def name @name end |
#parent_category ⇒ Object
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 |