Class: Messenger::Params

Inherits:
Object
  • Object
show all
Defined in:
lib/messenger/params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#paramsObject

Returns the value of attribute params.



3
4
5
# File 'lib/messenger/params.rb', line 3

def params
  @params
end

Instance Method Details

#entriesObject



9
10
11
# File 'lib/messenger/params.rb', line 9

def entries
  @entries_objects ||= build_entries
end

#first_entryObject Also known as: first_messaging



13
14
15
# File 'lib/messenger/params.rb', line 13

def first_entry
  entries[0].messagings[0]
end