Class: LazerPayModule::Deposit::FIAT

Inherits:
Wrapper
  • Object
show all
Defined in:
lib/lazerpay/main_module.rb

Instance Method Summary collapse

Constructor Details

#initializeFIAT

Returns a new instance of FIAT.



68
# File 'lib/lazerpay/main_module.rb', line 68

def initialize; end

Instance Method Details

#get_available_accountsObject



82
83
84
85
86
# File 'lib/lazerpay/main_module.rb', line 82

def get_available_accounts 
    response = Agent.get( "/bank/funding/accounts",  { secret_key: @@sk, public_key: @@pk } );

    return response.to_h;
end

#get_funding_rate(currency) ⇒ Object



76
77
78
79
80
# File 'lib/lazerpay/main_module.rb', line 76

def get_funding_rate currency
    response = Agent.get( "/bank/funding/rate", { secret_key: @@sk, public_key: @@pk, query_parameter: "currency=#{currency}" } );

    return response.to_h;
end

#init(payload) ⇒ Object



70
71
72
73
74
# File 'lib/lazerpay/main_module.rb', line 70

def init payload
    response = Agent.post( "/bank/funding/initiate", { secret_key: @@sk, public_key: @@pk, data: payload } );

    return response.to_h;
end