Sha256: 1b8131050e4ba9f359570ceccd7d8bc32dfbff17a25a6eb833b68bc69c99d278

Contents?: true

Size: 597 Bytes

Versions: 37

Compression:

Stored size: 597 Bytes

Contents

module FbGraph2
  class Struct
    class AppEventType < Struct
      register_attributes(
        raw: [:event_name, :display_name, :description],
        custom: [:parameters]
      )

      class Parameter < Struct
        register_attributes(
          raw: [:parameter_name, :display_name, :description]
        )
      end

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

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
fb_graph2-0.6.1 lib/fb_graph2/struct/app_event_type.rb
fb_graph2-0.6.0 lib/fb_graph2/struct/app_event_type.rb
fb_graph2-0.5.3 lib/fb_graph2/struct/app_event_type.rb
fb_graph2-0.5.2 lib/fb_graph2/struct/app_event_type.rb
fb_graph2-0.5.1 lib/fb_graph2/struct/app_event_type.rb
fb_graph2-0.5.0 lib/fb_graph2/struct/app_event_type.rb
fb_graph2-0.4.4 lib/fb_graph2/struct/app_event_type.rb
fb_graph2-0.4.3 lib/fb_graph2/struct/app_event_type.rb
fb_graph2-0.4.1 lib/fb_graph2/struct/app_event_type.rb
fb_graph2-0.4.0 lib/fb_graph2/struct/app_event_type.rb
fb_graph2-0.3.2 lib/fb_graph2/struct/app_event_type.rb
fb_graph2-0.3.1 lib/fb_graph2/struct/app_event_type.rb
fb_graph2-0.3.0 lib/fb_graph2/struct/app_event_type.rb
fb_graph2-0.2.0 lib/fb_graph2/struct/app_event_type.rb
fb_graph2-0.1.3 lib/fb_graph2/struct/app_event_type.rb
fb_graph2-0.1.2 lib/fb_graph2/struct/app_event_type.rb
fb_graph2-0.1.1 lib/fb_graph2/struct/app_event_type.rb