Sha256: 78de7379d7ba87c12c741458857d68f237d69fb4f5f15f3686b97c5e8ca813e6

Contents?: true

Size: 596 Bytes

Versions: 6

Compression:

Stored size: 596 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

6 entries across 6 versions & 1 rubygems

Version Path
fb_graph2-0.1.0 lib/fb_graph2/struct/app_event_type.rb
fb_graph2-0.0.11 lib/fb_graph2/struct/app_event_type.rb
fb_graph2-0.0.10 lib/fb_graph2/struct/app_event_type.rb
fb_graph2-0.0.9 lib/fb_graph2/struct/app_event_type.rb
fb_graph2-0.0.8 lib/fb_graph2/struct/app_event_type.rb
fb_graph2-0.0.7 lib/fb_graph2/struct/app_event_type.rb