Class: Hyperwallet::Program

Inherits:
HyperwalletObject show all
Defined in:
lib/hyperwallet/program.rb

Defined Under Namespace

Classes: Account

Instance Attribute Summary

Attributes inherited from HyperwalletObject

#values

Class Method Summary collapse

Methods inherited from HyperwalletObject

attributes, construct_from, convert_to_hyperwallet_object, #initialize, #method_missing, relations, #respond_to_missing?

Constructor Details

This class inherits a constructor from Hyperwallet::HyperwalletObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Hyperwallet::HyperwalletObject

Class Method Details

.find(program_key) ⇒ Object



4
5
6
7
# File 'lib/hyperwallet/program.rb', line 4

def self.find(program_key)
  res = Hyperwallet.request(:get, "/programs/#{program_key}")
  convert_to_hyperwallet_object(res, Program)
end