Class: Twilio::REST::Messaging::V3::MessageCostEstimateInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Messaging::V3::MessageCostEstimateInstance
- Defined in:
- lib/twilio-ruby/rest/messaging/v3/message_cost_estimate.rb
Instance Method Summary collapse
-
#country ⇒ String
The ISO-3166-1 alpha-2 country code the estimate was computed for.
-
#currency ⇒ String
The WhatsApp Business Account's currency (e.g.
USD). -
#disclaimer ⇒ String
Estimates are historical and informational only; actual delivery and cost may vary.
-
#estimates ⇒ Array<MessageCostEstimateBidLevel>
One entry per bid level.
-
#initialize(version, payload) ⇒ MessageCostEstimateInstance
constructor
Initialize the MessageCostEstimateInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#lookback_window ⇒ String
The historical lookback window used to compute the estimate.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, payload) ⇒ MessageCostEstimateInstance
Initialize the MessageCostEstimateInstance
143 144 145 146 147 148 149 150 151 152 153 154 155 |
# File 'lib/twilio-ruby/rest/messaging/v3/message_cost_estimate.rb', line 143 def initialize(version, payload ) super(version) # Marshaled Properties @properties = { 'currency' => payload['currency'], 'country' => payload['country'], 'lookback_window' => payload['lookback_window'], 'estimates' => payload['estimates'], 'disclaimer' => payload['disclaimer'], } end |
Instance Method Details
#country ⇒ String
Returns The ISO-3166-1 alpha-2 country code the estimate was computed for.
166 167 168 |
# File 'lib/twilio-ruby/rest/messaging/v3/message_cost_estimate.rb', line 166 def country @properties['country'] end |
#currency ⇒ String
Returns The WhatsApp Business Account's currency (e.g. USD). bidAmount and cost bounds are in this currency's smallest unit.
160 161 162 |
# File 'lib/twilio-ruby/rest/messaging/v3/message_cost_estimate.rb', line 160 def currency @properties['currency'] end |
#disclaimer ⇒ String
Returns Estimates are historical and informational only; actual delivery and cost may vary.
184 185 186 |
# File 'lib/twilio-ruby/rest/messaging/v3/message_cost_estimate.rb', line 184 def disclaimer @properties['disclaimer'] end |
#estimates ⇒ Array<MessageCostEstimateBidLevel>
Returns One entry per bid level.
178 179 180 |
# File 'lib/twilio-ruby/rest/messaging/v3/message_cost_estimate.rb', line 178 def estimates @properties['estimates'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
196 197 198 |
# File 'lib/twilio-ruby/rest/messaging/v3/message_cost_estimate.rb', line 196 def inspect "<Twilio.Messaging.V3.MessageCostEstimateInstance>" end |
#lookback_window ⇒ String
Returns The historical lookback window used to compute the estimate.
172 173 174 |
# File 'lib/twilio-ruby/rest/messaging/v3/message_cost_estimate.rb', line 172 def lookback_window @properties['lookback_window'] end |
#to_s ⇒ Object
Provide a user friendly representation
190 191 192 |
# File 'lib/twilio-ruby/rest/messaging/v3/message_cost_estimate.rb', line 190 def to_s "<Twilio.Messaging.V3.MessageCostEstimateInstance>" end |