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