Class: Rmb::Subscription
Instance Attribute Summary collapse
-
#drop ⇒ Object
Returns the value of attribute drop.
-
#id ⇒ Object
Returns the value of attribute id.
-
#message ⇒ Object
Returns the value of attribute message.
-
#type ⇒ Object
Returns the value of attribute type.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#destroy! ⇒ Object
Destroys the given subscription.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from Rmb::Resource
Instance Attribute Details
#drop ⇒ Object
Returns the value of attribute drop.
2 3 4 |
# File 'lib/rmb/subscription.rb', line 2 def drop @drop end |
#id ⇒ Object
Returns the value of attribute id.
2 3 4 |
# File 'lib/rmb/subscription.rb', line 2 def id @id end |
#message ⇒ Object
Returns the value of attribute message.
2 3 4 |
# File 'lib/rmb/subscription.rb', line 2 def end |
#type ⇒ Object
Returns the value of attribute type.
2 3 4 |
# File 'lib/rmb/subscription.rb', line 2 def type @type end |
#username ⇒ Object
Returns the value of attribute username.
2 3 4 |
# File 'lib/rmb/subscription.rb', line 2 def username @username end |
Instance Method Details
#destroy! ⇒ Object
Destroys the given subscription
5 6 7 8 |
# File 'lib/rmb/subscription.rb', line 5 def destroy! Rmb::Resource.client.delete_subscription(self) nil end |