Class: Spreedly::AuthMode
- Inherits:
-
Object
- Object
- Spreedly::AuthMode
- Includes:
- Fields
- Defined in:
- lib/spreedly/auth_mode.rb
Instance Attribute Summary collapse
-
#auth_mode_type ⇒ Object
readonly
Returns the value of attribute auth_mode_type.
-
#credentials ⇒ Object
readonly
Returns the value of attribute credentials.
Instance Method Summary collapse
-
#initialize(xml_doc) ⇒ AuthMode
constructor
A new instance of AuthMode.
Methods included from Fields
#field_hash, included, #initialize_fields
Constructor Details
#initialize(xml_doc) ⇒ AuthMode
Returns a new instance of 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_type ⇒ Object (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 |
#credentials ⇒ Object (readonly)
Returns the value of attribute credentials.
6 7 8 |
# File 'lib/spreedly/auth_mode.rb', line 6 def credentials @credentials end |