Class: YunPianSMS::BatchResult

Inherits:
Object
  • Object
show all
Defined in:
lib/yunpian_sms/batch_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#detailsObject (readonly)

发送明细



7
8
9
# File 'lib/yunpian_sms/batch_result.rb', line 7

def details
  @details
end

#failed_peopleObject (readonly)

发送失败列表



5
6
7
# File 'lib/yunpian_sms/batch_result.rb', line 5

def failed_people
  @failed_people
end

#successful_countObject (readonly)

总发送成功条数, 一条短信超过 70 字会被拆分成多条



3
4
5
# File 'lib/yunpian_sms/batch_result.rb', line 3

def successful_count
  @successful_count
end

#successful_peopleObject (readonly)

发送成功列表



4
5
6
# File 'lib/yunpian_sms/batch_result.rb', line 4

def successful_people
  @successful_people
end

#total_feeObject (readonly)

总花费金额



6
7
8
# File 'lib/yunpian_sms/batch_result.rb', line 6

def total_fee
  @total_fee
end