Sha256: 555c13b79c8444288c519a9c8ae56126b9d13729eebc83e07af65813e5591263
Contents?: true
Size: 756 Bytes
Versions: 2
Compression:
Stored size: 756 Bytes
Contents
module SmsBroker module Client module Response module OpenMarket class SendMessageSuccess < Success attr_reader :location, :request_id def initialize(open_market_response) super :open_market, open_market_response, serialize(open_market_response) set_attributes(open_market_response) end private def serialize(response) { to: response.to, from: response.from, message_id: response.message_id } end def set_attributes(response) @location = response.location @request_id = response.request_id end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sms_broker-1.0.8 | lib/sms_broker/client/response/open_market/send_message_success.rb |
sms_broker-1.0.7 | lib/sms_broker/client/response/open_market/send_message_success.rb |