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.28 lib/spreedly/auth_mode.rb
spreedly-2.0.27 lib/spreedly/auth_mode.rb
spreedly-2.0.26 lib/spreedly/auth_mode.rb
spreedly-2.0.25 lib/spreedly/auth_mode.rb
spreedly-2.0.24 lib/spreedly/auth_mode.rb
spreedly-2.0.23 lib/spreedly/auth_mode.rb
spreedly-2.0.22 lib/spreedly/auth_mode.rb
spreedly-2.0.21 lib/spreedly/auth_mode.rb
spreedly-2.0.20 lib/spreedly/auth_mode.rb
spreedly-2.0.19 lib/spreedly/auth_mode.rb
spreedly-2.0.18 lib/spreedly/auth_mode.rb
spreedly-2.0.17 lib/spreedly/auth_mode.rb
spreedly-2.0.16 lib/spreedly/auth_mode.rb
spreedly-2.0.15 lib/spreedly/auth_mode.rb
spreedly-2.0.14 lib/spreedly/auth_mode.rb
spreedly-2.0.13 lib/spreedly/auth_mode.rb
spreedly-2.0.11 lib/spreedly/auth_mode.rb
spreedly-2.0.10 lib/spreedly/auth_mode.rb
spreedly-2.0.9 lib/spreedly/auth_mode.rb
spreedly-2.0.8 lib/spreedly/auth_mode.rb