Sha256: 142617dbeee9c2a92be1963c408914f6f51ce7ec87c8b6e5c3b64944cdc2965a

Contents?: true

Size: 717 Bytes

Versions: 1

Compression:

Stored size: 717 Bytes

Contents

module Moceansdk
  module Modules
    module Message

      class MessageStatus < Moceansdk::Modules::AbstractClient
        def initialize(obj_auth, transmitter)
          super(obj_auth, transmitter)
          @required_fields = ['mocean-api-key', 'mocean-api-secret', 'mocean-msgid']
        end

        def msgid=(param)
          @params['mocean-msgid'] = param
        end

        def resp_format=(param)
          @params['mocean-resp-format'] = param
        end

        def inquiry(params = {})
          create(params)
          create_final_params
          required_field_set?

          @transmitter.get('/report/message', @params)
        end
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
moceansdk-1.0.0 lib/moceansdk/modules/message/message_status.rb