Sha256: 964dc371992c827547c09b2305779656d92ca817b98b7d95c24fe24751b42f9a

Contents?: true

Size: 504 Bytes

Versions: 3

Compression:

Stored size: 504 Bytes

Contents

module Awis
  module API
    class Base
      include Utils::Extra
      attr_reader :arguments, :response_body

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

      def root_node_name
        "#{action_name}Response"
      end

      def action_name
        self.class.name.split(/\:\:/)[-1]
      end

      class << self
        def loading_data_from_xml(xml_file_path)
          MultiXml.parse(File.new(xml_file_path))
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
awis-sdk-ruby-0.0.4 lib/awis/api/base.rb
awis-sdk-ruby-0.0.3 lib/awis/api/base.rb
awis-sdk-ruby-0.0.1 lib/awis/api/base.rb