Sha256: 1295041c6d79a43b4468d99843c3a3a13bba350042ed54f85cf417374c642dca

Contents?: true

Size: 598 Bytes

Versions: 8

Compression:

Stored size: 598 Bytes

Contents

module Gupshup
  module REST
    class Api
      class V1 < Version
        ##
        # Initialize the V1 version of Api
        def initialize(domain)
          super
          @version = 'v1'
          @solution = {}
        end

        def messages(sid=:unset)
          raise ArgumentError, 'sid cannot be nil' if sid.nil?

          @messages = V1::MessageList.new(@version, src_name: @solution[:sid], )

          @messages
        end
        ##
        # Provide a user friendly representation
        def to_s
          '<Gupshup::REST::Api::V1>'
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
gupshup-rb-0.2.1 lib/gupshup-rb/rest/api/v1.rb
gupshup-rb-0.2.0 lib/gupshup-rb/rest/api/v1.rb
gupshup-rb-0.1.9 lib/gupshup-rb/rest/api/v1.rb
gupshup-rb-0.1.8.4 lib/gupshup-rb/rest/api/v1.rb
gupshup-rb-0.1.8.3 lib/gupshup-rb/rest/api/v1.rb
gupshup-rb-0.1.8.2 lib/gupshup-rb/rest/api/v1.rb
gupshup-rb-0.1.8.1 lib/gupshup-rb/rest/api/v1.rb
gupshup-rb-0.1.8 lib/gupshup-rb/rest/api/v1.rb