Class: Messenger::Parameters::Entry
- Inherits:
-
Object
- Object
- Messenger::Parameters::Entry
- Defined in:
- lib/messenger/parameters/entry.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#messagings ⇒ Object
Returns the value of attribute messagings.
-
#time ⇒ Object
Returns the value of attribute time.
Instance Method Summary collapse
- #build_messagings(messagings) ⇒ Object
-
#initialize(id:, time:, messaging: nil) ⇒ Entry
constructor
A new instance of Entry.
Constructor Details
#initialize(id:, time:, messaging: nil) ⇒ Entry
Returns a new instance of Entry.
6 7 8 9 10 |
# File 'lib/messenger/parameters/entry.rb', line 6 def initialize(id:, time:, messaging: nil) @id = id @time = time @messagings = build_messagings(messaging) if messaging.present? end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/messenger/parameters/entry.rb', line 4 def id @id end |
#messagings ⇒ Object
Returns the value of attribute messagings.
4 5 6 |
# File 'lib/messenger/parameters/entry.rb', line 4 def messagings @messagings end |
#time ⇒ Object
Returns the value of attribute time.
4 5 6 |
# File 'lib/messenger/parameters/entry.rb', line 4 def time @time end |