Class: Rmb::Subscription

Inherits:
Resource show all
Defined in:
lib/rmb/subscription.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Resource

client, #initialize

Constructor Details

This class inherits a constructor from Rmb::Resource

Instance Attribute Details

#dropObject

Returns the value of attribute drop.



2
3
4
# File 'lib/rmb/subscription.rb', line 2

def drop
  @drop
end

#idObject

Returns the value of attribute id.



2
3
4
# File 'lib/rmb/subscription.rb', line 2

def id
  @id
end

#messageObject

Returns the value of attribute message.



2
3
4
# File 'lib/rmb/subscription.rb', line 2

def message
  @message
end

#typeObject

Returns the value of attribute type.



2
3
4
# File 'lib/rmb/subscription.rb', line 2

def type
  @type
end

#usernameObject

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