Class: Iyzipay::Model::Address

Inherits:
Object
  • Object
show all
Defined in:
lib/iyzipay/model/address.rb

Class Method Summary collapse

Class Method Details

.to_pki_string(request) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/iyzipay/model/address.rb', line 4

def self.to_pki_string(request)
  unless request.nil?
    PkiBuilder.new.
        append(:address, request[:address]).
        append(:zipCode, request[:zipCode]).
        append(:contactName, request[:contactName]).
        append(:city, request[:city]).
        append(:country, request[:country]).
        get_request_string
  end
end