Class: Karaden::Param::Message::MessageListParams
- Inherits:
-
MessageParams
- Object
- MessageParams
- Karaden::Param::Message::MessageListParams
- Defined in:
- lib/karaden/param/message/message_list_params.rb
Constant Summary
Constants inherited from MessageParams
Karaden::Param::Message::MessageParams::CONTEXT_PATH
Instance Attribute Summary collapse
-
#end_at ⇒ Object
Returns the value of attribute end_at.
-
#page ⇒ Object
Returns the value of attribute page.
-
#per_page ⇒ Object
Returns the value of attribute per_page.
-
#result ⇒ Object
Returns the value of attribute result.
-
#sent_result ⇒ Object
Returns the value of attribute sent_result.
-
#service_id ⇒ Object
Returns the value of attribute service_id.
-
#start_at ⇒ Object
Returns the value of attribute start_at.
-
#status ⇒ Object
Returns the value of attribute status.
-
#tag ⇒ Object
Returns the value of attribute tag.
-
#to ⇒ Object
Returns the value of attribute to.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ MessageListParams
constructor
A new instance of MessageListParams.
- #to_params ⇒ Object
- #to_path ⇒ Object
Methods inherited from MessageParams
Constructor Details
#initialize ⇒ MessageListParams
Returns a new instance of MessageListParams.
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/karaden/param/message/message_list_params.rb', line 7 def initialize() @service_id = nil @to = nil @status = nil @result = nil @sent_result = nil @tag = nil @start_at = nil @end_at = nil @page = nil @per_page = nil super end |
Instance Attribute Details
#end_at ⇒ Object
Returns the value of attribute end_at.
5 6 7 |
# File 'lib/karaden/param/message/message_list_params.rb', line 5 def end_at @end_at end |
#page ⇒ Object
Returns the value of attribute page.
5 6 7 |
# File 'lib/karaden/param/message/message_list_params.rb', line 5 def page @page end |
#per_page ⇒ Object
Returns the value of attribute per_page.
5 6 7 |
# File 'lib/karaden/param/message/message_list_params.rb', line 5 def per_page @per_page end |
#result ⇒ Object
Returns the value of attribute result.
5 6 7 |
# File 'lib/karaden/param/message/message_list_params.rb', line 5 def result @result end |
#sent_result ⇒ Object
Returns the value of attribute sent_result.
5 6 7 |
# File 'lib/karaden/param/message/message_list_params.rb', line 5 def sent_result @sent_result end |
#service_id ⇒ Object
Returns the value of attribute service_id.
5 6 7 |
# File 'lib/karaden/param/message/message_list_params.rb', line 5 def service_id @service_id end |
#start_at ⇒ Object
Returns the value of attribute start_at.
5 6 7 |
# File 'lib/karaden/param/message/message_list_params.rb', line 5 def start_at @start_at end |
#status ⇒ Object
Returns the value of attribute status.
5 6 7 |
# File 'lib/karaden/param/message/message_list_params.rb', line 5 def status @status end |
#tag ⇒ Object
Returns the value of attribute tag.
5 6 7 |
# File 'lib/karaden/param/message/message_list_params.rb', line 5 def tag @tag end |
#to ⇒ Object
Returns the value of attribute to.
5 6 7 |
# File 'lib/karaden/param/message/message_list_params.rb', line 5 def to @to end |
Class Method Details
.new_builder ⇒ Object
40 41 42 |
# File 'lib/karaden/param/message/message_list_params.rb', line 40 def self.new_builder MessageListParamsBuilder.new end |
Instance Method Details
#to_params ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/karaden/param/message/message_list_params.rb', line 25 def to_params { service_id: @service_id, to: @to, status: @status, result: @result, sent_result: @sent_result, tag: @tag, start_at: @start_at&.iso8601, end_at: @end_at&.iso8601, page: @page, per_page: @per_page }.reject { |_, value| value.nil? } end |
#to_path ⇒ Object
21 22 23 |
# File 'lib/karaden/param/message/message_list_params.rb', line 21 def to_path CONTEXT_PATH end |