Method: VoucherifySdk::ExportsGetResponseBodyParameters#initialize

Defined in:
lib/VoucherifySdk/models/exports_get_response_body_parameters.rb

#initialize(attributes = {}) ⇒ ExportsGetResponseBodyParameters

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# File 'lib/VoucherifySdk/models/exports_get_response_body_parameters.rb', line 82

def initialize(attributes = {})
  # check to see if the attribute exists and convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h|
    h[k.to_sym] = v
  }

  if attributes.key?(:'order')
    self.order = attributes[:'order']
  end

  if attributes.key?(:'fields')
    if (value = attributes[:'fields']).is_a?(Array)
      self.fields = value
    end
  end

  if attributes.key?(:'filters')
    self.filters = attributes[:'filters']
  end
end