Class: Messenger::Params
- Inherits:
-
Object
- Object
- Messenger::Params
- Defined in:
- lib/messenger/params.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
Returns the value of attribute params.
Instance Method Summary collapse
- #entries ⇒ Object
- #first_entry ⇒ Object (also: #first_messaging)
-
#initialize(params) ⇒ Params
constructor
A new instance of Params.
Constructor Details
#initialize(params) ⇒ Params
Returns a new instance of Params.
5 6 7 |
# File 'lib/messenger/params.rb', line 5 def initialize(params) @params = params end |
Instance Attribute Details
#params ⇒ Object
Returns the value of attribute params.
3 4 5 |
# File 'lib/messenger/params.rb', line 3 def params @params end |
Instance Method Details
#entries ⇒ Object
9 10 11 |
# File 'lib/messenger/params.rb', line 9 def entries @entries_objects ||= build_entries end |
#first_entry ⇒ Object Also known as: first_messaging
13 14 15 |
# File 'lib/messenger/params.rb', line 13 def first_entry entries[0].messagings[0] end |