Class: Messaging::Adapters::Test::Category

Inherits:
Object
  • Object
show all
Defined in:
lib/messaging/adapters/test/category.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Category

Returns a new instance of Category.



7
8
9
# File 'lib/messaging/adapters/test/category.rb', line 7

def initialize(name)
  self.name = name
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/messaging/adapters/test/category.rb', line 5

def name
  @name
end

Instance Method Details

#messagesObject



11
12
13
# File 'lib/messaging/adapters/test/category.rb', line 11

def messages
  @messages ||= []
end