Method: MaxMind::Enquiry#sendable_attributes

Defined in:
lib/max_mind/enquiry.rb

#sendable_attributesObject

 The attributes here will be sent to max mind



11
12
13
14
15
16
17
18
# File 'lib/max_mind/enquiry.rb', line 11

def sendable_attributes
  hash = Hash.new
  for field, data in attributes
    hash[mapping[field]] = data
  end
  hash['license_key'] = MaxMind.licence_key
  hash
end