Class: LazerPayModule::Transaction

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

Instance Method Summary collapse

Constructor Details

#initializeTransaction

Returns a new instance of Transaction.



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

def initialize; end

Instance Method Details

#get(transaction_id) ⇒ Object



129
130
131
132
133
# File 'lib/lazerpay/main_module.rb', line 129

def get transaction_id
    response = Agent.get( "/transactions", { secret_key: @@sk, public_key: @@pk, route_parameter: transaction_id } );

    return response.to_h;
end

#get_allObject



135
136
137
138
139
# File 'lib/lazerpay/main_module.rb', line 135

def get_all
    response = Agent.get( "/transactions", { secret_key: @@sk, public_key: @@pk } );

    return response.to_h;
end