Method: MmJsonClient::GenericType#initialize

Defined in:
lib/mm_json_client/generic_type.rb

#initialize(attributes = {}) ⇒ GenericType

Returns a new instance of GenericType.



4
5
6
7
8
9
# File 'lib/mm_json_client/generic_type.rb', line 4

def initialize(attributes = {})
  @data = {}
  attributes.each do |key, value|
    send("#{key}=", value) if respond_to?("#{key}=")
  end
end