class Revolut::Api::Response::Merchant

Constants

MAPPING

Attributes

address[RW]
category[RW]
city[RW]
country[RW]
id[RW]
mapping[RW]
mcc[RW]
name[RW]
postcode[RW]
scheme[RW]
state[RW]

Public Class Methods

new(hash = {}) click to toggle source
# File lib/revolut/api/response/merchant.rb, line 21
def initialize(hash = {})
  ::Revolut::Api::Response::Merchant::MAPPING.each do |revolut_key, accessor|
    self.send("#{accessor}=", hash.fetch(revolut_key, nil))
  end
end