Class: RubyMailman::Subscription::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_mailman/subscription/message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, raw_message)
  self.channel = channel
  self.action = raw_message[0]
  self.content = raw_message[1]
end

Instance Attribute Details

#actionObject

Returns the value of attribute action.



4
5
6
# File 'lib/ruby_mailman/subscription/message.rb', line 4

def action
  @action
end

#channelObject

Returns the value of attribute channel.



4
5
6
# File 'lib/ruby_mailman/subscription/message.rb', line 4

def channel
  @channel
end

#contentObject

Returns the value of attribute content.



4
5
6
# File 'lib/ruby_mailman/subscription/message.rb', line 4

def content
  @content
end