Class: Karaden::Param::Message::MessageListParams

Inherits:
MessageParams
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from MessageParams

#validate

Constructor Details

#initializeMessageListParams

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_atObject

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

#pageObject

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_pageObject

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

#resultObject

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_resultObject

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_idObject

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_atObject

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

#statusObject

Returns the value of attribute status.



5
6
7
# File 'lib/karaden/param/message/message_list_params.rb', line 5

def status
  @status
end

#tagObject

Returns the value of attribute tag.



5
6
7
# File 'lib/karaden/param/message/message_list_params.rb', line 5

def tag
  @tag
end

#toObject

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_builderObject



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_paramsObject



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_pathObject



21
22
23
# File 'lib/karaden/param/message/message_list_params.rb', line 21

def to_path
  CONTEXT_PATH
end