Class: Fog::Compute::Packet::PaymentMethods
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::Packet::PaymentMethods
- Defined in:
- lib/fog/compute/packet/models/payment_methods.rb
Overview
PaymentMethods
Instance Method Summary collapse
Instance Method Details
#all(org_id, params = {}) ⇒ Object
10 11 12 13 |
# File 'lib/fog/compute/packet/models/payment_methods.rb', line 10 def all(org_id, params = {}) response = service.list_payment_methods(org_id, params) load(response.body["payment_methods"]) end |
#get(id) ⇒ Object
15 16 17 18 |
# File 'lib/fog/compute/packet/models/payment_methods.rb', line 15 def get(id) response = service.get_payment_method(id) new(response.body) end |