Class: FbGraph::BroadTargetingCategory

Inherits:
Node
  • Object
show all
Defined in:
lib/fb_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

- (BroadTargetingCategory) initialize(identifier, attributes = {})



5
6
7
8
9
10
11
# File 'lib/fb_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

- (Object) name

Returns the value of attribute name



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

def name
  @name
end

- (Object) parent_category

Returns the value of attribute parent_category



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

def parent_category
  @parent_category
end