Class: Fog::Compute::Packet::Invitation
- Inherits:
-
Model
- Object
- Model
- Fog::Compute::Packet::Invitation
- Defined in:
- lib/fog/compute/packet/models/invitation.rb
Overview
Invitation Model
Instance Method Summary collapse
- #accept ⇒ Object
- #decline ⇒ Object
-
#initialize(attributes = {}) ⇒ Invitation
constructor
A new instance of Invitation.
Constructor Details
#initialize(attributes = {}) ⇒ Invitation
Returns a new instance of Invitation.
16 17 18 |
# File 'lib/fog/compute/packet/models/invitation.rb', line 16 def initialize(attributes = {}) super end |
Instance Method Details
#accept ⇒ Object
20 21 22 23 24 25 |
# File 'lib/fog/compute/packet/models/invitation.rb', line 20 def accept requires :id response = service.accept_invitation(id) merge_attributes(response.body) end |
#decline ⇒ Object
27 28 29 30 31 32 |
# File 'lib/fog/compute/packet/models/invitation.rb', line 27 def decline requires :id response = service.decline_invitation(id) merge_attributes(response.body) end |