Class: Messaging::Adapters::Test::Category
- Inherits:
-
Object
- Object
- Messaging::Adapters::Test::Category
- Defined in:
- lib/messaging/adapters/test/category.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Category
constructor
A new instance of Category.
- #messages ⇒ Object
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
#name ⇒ Object
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
#messages ⇒ Object
11 12 13 |
# File 'lib/messaging/adapters/test/category.rb', line 11 def @messages ||= [] end |