Class: Aliyun::CloudSms::Request::MessageQuery
- Defined in:
- lib/aliyun/cloud_sms/request/message_query.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#biz_id ⇒ Object
Returns the value of attribute biz_id.
-
#current_page ⇒ Object
Returns the value of attribute current_page.
-
#mobile ⇒ Object
Returns the value of attribute mobile.
-
#page_size ⇒ Object
Returns the value of attribute page_size.
-
#send_date ⇒ Object
Returns the value of attribute send_date.
Attributes inherited from Base
Instance Method Summary collapse
- #action ⇒ Object
- #custom_params ⇒ Object
-
#initialize(mobile, send_date, biz_id, page_size, current_page) ⇒ MessageQuery
constructor
A new instance of MessageQuery.
Methods inherited from Base
Constructor Details
#initialize(mobile, send_date, biz_id, page_size, current_page) ⇒ MessageQuery
Returns a new instance of MessageQuery.
7 8 9 10 11 12 13 |
# File 'lib/aliyun/cloud_sms/request/message_query.rb', line 7 def initialize(mobile, send_date, biz_id, page_size, current_page) self.mobile = mobile self.send_date = send_date self.biz_id = biz_id self.page_size = page_size self.current_page = current_page end |
Instance Attribute Details
#biz_id ⇒ Object
Returns the value of attribute biz_id.
5 6 7 |
# File 'lib/aliyun/cloud_sms/request/message_query.rb', line 5 def biz_id @biz_id end |
#current_page ⇒ Object
Returns the value of attribute current_page.
5 6 7 |
# File 'lib/aliyun/cloud_sms/request/message_query.rb', line 5 def current_page @current_page end |
#mobile ⇒ Object
Returns the value of attribute mobile.
5 6 7 |
# File 'lib/aliyun/cloud_sms/request/message_query.rb', line 5 def mobile @mobile end |
#page_size ⇒ Object
Returns the value of attribute page_size.
5 6 7 |
# File 'lib/aliyun/cloud_sms/request/message_query.rb', line 5 def page_size @page_size end |
#send_date ⇒ Object
Returns the value of attribute send_date.
5 6 7 |
# File 'lib/aliyun/cloud_sms/request/message_query.rb', line 5 def send_date @send_date end |
Instance Method Details
#action ⇒ Object
15 16 17 |
# File 'lib/aliyun/cloud_sms/request/message_query.rb', line 15 def action "QuerySendDetails" end |
#custom_params ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/aliyun/cloud_sms/request/message_query.rb', line 19 def custom_params params = { :PhoneNumber => mobile, :SendDate => send_date, :PageSize => page_size, :CurrentPage => current_page } params.merge!({:BizId => biz_id}) if biz_id params end |