Class: Moip2::Api
- Inherits:
-
Object
- Object
- Moip2::Api
- Defined in:
- lib/moip2/api.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(client) ⇒ Api
constructor
A new instance of Api.
- #invoice ⇒ Object
- #keys ⇒ Object
- #order ⇒ Object
- #payment ⇒ Object
- #refund ⇒ Object
Constructor Details
#initialize(client) ⇒ Api
Returns a new instance of Api.
6 7 8 |
# File 'lib/moip2/api.rb', line 6 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
4 5 6 |
# File 'lib/moip2/api.rb', line 4 def client @client end |
Instance Method Details
#invoice ⇒ Object
18 19 20 |
# File 'lib/moip2/api.rb', line 18 def invoice Moip2::InvoiceApi.new client end |
#keys ⇒ Object
26 27 28 |
# File 'lib/moip2/api.rb', line 26 def keys Moip2::KeysApi.new(client) end |
#order ⇒ Object
10 11 12 |
# File 'lib/moip2/api.rb', line 10 def order Moip2::OrderApi.new(client) end |
#payment ⇒ Object
14 15 16 |
# File 'lib/moip2/api.rb', line 14 def payment Moip2::PaymentApi.new(client) end |
#refund ⇒ Object
22 23 24 |
# File 'lib/moip2/api.rb', line 22 def refund Moip2::RefundApi.new(client) end |