Sha256: f997e069c2b21fc4872694740eaf538487ca5b46fc08f718d95038d6485a8719

Contents?: true

Size: 506 Bytes

Versions: 5

Compression:

Stored size: 506 Bytes

Contents

require_relative '../../resource'
require_relative '../../shared/class_with_attributes'

module CheckMobi
  module Resources
    module Voice

      class Call < Resource

        attributes :from, :to, :notification_callback, :platform
        attribute :events, default: []

        private

        def defaults
          super.merge!({
              rel_path: '/call',
              http_method: ALLOWED_METHODS[1],
              form_data: to_hash
          })
        end

      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
check_mobi-1.0.5 lib/check_mobi/resources/voice/call.rb
check_mobi-1.0.4 lib/check_mobi/resources/voice/call.rb
check_mobi-1.0.3 lib/check_mobi/resources/voice/call.rb
check_mobi-1.0.2 lib/check_mobi/resources/voice/call.rb
check_mobi-1.0.1 lib/check_mobi/resources/voice/call.rb