Class: Spreedly::AuthMode

Inherits:
Object
  • Object
show all
Includes:
Fields
Defined in:
lib/spreedly/auth_mode.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Fields

#field_hash, included, #initialize_fields

Constructor Details

#initialize(xml_doc) ⇒ AuthMode


8
9
10
11
12
13
14
# File 'lib/spreedly/auth_mode.rb', line 8

def initialize(xml_doc)
  initialize_fields(xml_doc)

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

Instance Attribute Details

#auth_mode_typeObject (readonly)

Returns the value of attribute auth_mode_type


6
7
8
# File 'lib/spreedly/auth_mode.rb', line 6

def auth_mode_type
  @auth_mode_type
end

#credentialsObject (readonly)

Returns the value of attribute credentials


6
7
8
# File 'lib/spreedly/auth_mode.rb', line 6

def credentials
  @credentials
end