Sha256: d00d59401e3b98a33bf5b3be620f8f8072de2d4ed1c4d16f5964480a2028872f

Contents?: true

Size: 511 Bytes

Versions: 9

Compression:

Stored size: 511 Bytes

Contents

module Alexa
  module API
    class Base
      include Utils

      attr_reader :arguments, :response_body

      def initialize(credentials)
        if MultiXml.parser.to_s == "MultiXml::Parsers::Ox"
          raise StandardError, "MultiXml parser is set to :ox - alexa gem will not work with it currently, use one of: :libxml, :nokogiri, :rexml"
        end
        @credentials = credentials
      end

      def parsed_body
        @parsed_body ||= MultiXml.parse(response_body)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
alexa-0.7.0 lib/alexa/api/base.rb
alexa-0.6.3 lib/alexa/api/base.rb
alexa-0.6.2 lib/alexa/api/base.rb
alexa-0.6.1 lib/alexa/api/base.rb
alexa-0.6.0 lib/alexa/api/base.rb
alexa-0.5.1 lib/alexa/api/base.rb
alexa-0.5.0 lib/alexa/api/base.rb
alexa-0.4.2 lib/alexa/api/base.rb
alexa-0.4.1 lib/alexa/api/base.rb