Class: EngagesparkClient::SendSmsResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/engagespark_client/responses/send_sms_response.rb

Constant Summary collapse

BODY_ATTRS =
{
  error: String,
  message_id: String,
  estimate_parts: Integer,
  estimate_micro: Integer,
  estimate: Decimal,
  delivery_deadline: DateTime,
  contact_id: Integer,
  to: String,
  message: String,
}.freeze

Instance Method Summary collapse

Instance Method Details

#default_bodyObject



29
30
31
# File 'lib/engagespark_client/responses/send_sms_response.rb', line 29

def default_body
  raw_response.body
end

#parsed_bodyObject



33
34
35
# File 'lib/engagespark_client/responses/send_sms_response.rb', line 33

def parsed_body
  JSON.parse(body)
end