Class: CloudParty::Nodes::Memberships
- Inherits:
-
Object
- Object
- CloudParty::Nodes::Memberships
- Includes:
- Context, HTTParty
- Defined in:
- lib/cloud_party/nodes/memberships.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ Memberships
constructor
A new instance of Memberships.
- #list ⇒ Object
Methods included from Context
Constructor Details
#initialize(options) ⇒ Memberships
Returns a new instance of Memberships.
15 16 17 18 |
# File 'lib/cloud_party/nodes/memberships.rb', line 15 def initialize() super() @options = end |
Instance Method Details
#list ⇒ Object
20 21 22 23 24 |
# File 'lib/cloud_party/nodes/memberships.rb', line 20 def list CloudParty::Responses::Memberships.new(:get, '/memberships', self.class.get('/memberships', @options)) rescue APIError raise end |