Class: FbGraph2::Struct::AppEventType

Inherits:
FbGraph2::Struct show all
Defined in:
lib/fb_graph2/struct/app_event_type.rb

Defined Under Namespace

Classes: Parameter

Instance Method Summary collapse

Methods included from AttributeAssigner

#assign

Constructor Details

#initialize(attributes = {}) ⇒ AppEventType

Returns a new instance of AppEventType.



15
16
17
18
19
20
21
22
# File 'lib/fb_graph2/struct/app_event_type.rb', line 15

def initialize(attributes = {})
  super
  if attributes.include? :parameters
    self.parameters = Collection.new(attributes[:parameters]).collect! do |param|
      Parameter.new param
    end
  end
end