Class: RubyMailman::Subscription::Message
- Inherits:
-
Object
- Object
- RubyMailman::Subscription::Message
- Defined in:
- lib/ruby_mailman/subscription/message.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#channel ⇒ Object
readonly
Returns the value of attribute channel.
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Instance Method Summary collapse
-
#initialize(channel, raw_message) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(channel, raw_message) ⇒ Message
Returns a new instance of Message.
5 6 7 8 9 |
# File 'lib/ruby_mailman/subscription/message.rb', line 5 def initialize(channel, ) self.channel = channel self.action = [0] self.content = [1] end |
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
4 5 6 |
# File 'lib/ruby_mailman/subscription/message.rb', line 4 def action @action end |
#channel ⇒ Object
Returns the value of attribute channel.
4 5 6 |
# File 'lib/ruby_mailman/subscription/message.rb', line 4 def channel @channel end |
#content ⇒ Object
Returns the value of attribute content.
4 5 6 |
# File 'lib/ruby_mailman/subscription/message.rb', line 4 def content @content end |