Class: FbGraph::BroadTargetingCategory
- Inherits:
-
Node
- Object
- Node
- FbGraph::BroadTargetingCategory
- Defined in:
- lib/fb_graph/broad_targeting_category.rb
Instance Attribute Summary (collapse)
-
- (Object) name
Returns the value of attribute name.
-
- (Object) parent_category
Returns the value of attribute parent_category.
Attributes inherited from Node
#access_token, #endpoint, #identifier, #raw_attributes
Instance Method Summary (collapse)
-
- (BroadTargetingCategory) initialize(identifier, attributes = {})
constructor
A new instance of BroadTargetingCategory.
Methods inherited from Node
#connection, #destroy, fetch, #fetch, #update
Methods included from Comparison
Constructor Details
- (BroadTargetingCategory) initialize(identifier, attributes = {})
A new instance of BroadTargetingCategory
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 |