Class: YunPianSMS::BatchResult
- Inherits:
-
Object
- Object
- YunPianSMS::BatchResult
- Defined in:
- lib/yunpian_sms/batch_result.rb
Instance Attribute Summary collapse
-
#details ⇒ Object
readonly
发送明细.
-
#failed_people ⇒ Object
readonly
发送失败列表.
-
#successful_count ⇒ Object
readonly
总发送成功条数, 一条短信超过 70 字会被拆分成多条.
-
#successful_people ⇒ Object
readonly
发送成功列表.
-
#total_fee ⇒ Object
readonly
总花费金额.
Instance Method Summary collapse
-
#initialize(successful_count, successful_people, failed_people, total_fee, details) ⇒ BatchResult
constructor
A new instance of BatchResult.
Constructor Details
#initialize(successful_count, successful_people, failed_people, total_fee, details) ⇒ BatchResult
Returns a new instance of BatchResult.
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/yunpian_sms/batch_result.rb', line 9 def initialize( successful_count, successful_people, failed_people, total_fee, details) @successful_count = successful_count @successful_people = successful_people @failed_people = failed_people @total_fee = total_fee @details = details end |
Instance Attribute Details
#details ⇒ Object (readonly)
发送明细
7 8 9 |
# File 'lib/yunpian_sms/batch_result.rb', line 7 def details @details end |
#failed_people ⇒ Object (readonly)
发送失败列表
5 6 7 |
# File 'lib/yunpian_sms/batch_result.rb', line 5 def failed_people @failed_people end |
#successful_count ⇒ Object (readonly)
总发送成功条数, 一条短信超过 70 字会被拆分成多条
3 4 5 |
# File 'lib/yunpian_sms/batch_result.rb', line 3 def successful_count @successful_count end |
#successful_people ⇒ Object (readonly)
发送成功列表
4 5 6 |
# File 'lib/yunpian_sms/batch_result.rb', line 4 def successful_people @successful_people end |
#total_fee ⇒ Object (readonly)
总花费金额
6 7 8 |
# File 'lib/yunpian_sms/batch_result.rb', line 6 def total_fee @total_fee end |