Sha256: 1490045d1e7951641116ab4697e76bc2f3a7fed57a30e884d72c2a22136424eb

Contents?: true

Size: 339 Bytes

Versions: 22

Compression:

Stored size: 339 Bytes

Contents

module Spreedly
  class AuthMode
    include Fields

    field :auth_mode_type, :name
    attr_reader :auth_mode_type, :credentials

    def initialize(xml_doc)
      initialize_fields(xml_doc)

      @credentials = xml_doc.xpath('.//credentials/credential').map do |each|
        Spreedly::Credential.new(each)
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
spreedly-2.0.7 lib/spreedly/auth_mode.rb
spreedly-2.0.6 lib/spreedly/auth_mode.rb