Class: Calendav::Credentials::Standard
- Inherits:
-
Object
- Object
- Calendav::Credentials::Standard
- Defined in:
- lib/calendav/credentials/standard.rb
Instance Attribute Summary collapse
-
#authentication ⇒ Object
readonly
Returns the value of attribute authentication.
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(host:, username:, password:, authentication: :basic_auth) ⇒ Standard
constructor
A new instance of Standard.
Constructor Details
#initialize(host:, username:, password:, authentication: :basic_auth) ⇒ Standard
Returns a new instance of Standard.
10 11 12 13 14 15 |
# File 'lib/calendav/credentials/standard.rb', line 10 def initialize(host:, username:, password:, authentication: :basic_auth) @host = URI(host) @username = username @password = password @authentication = authentication end |
Instance Attribute Details
#authentication ⇒ Object (readonly)
Returns the value of attribute authentication.
8 9 10 |
# File 'lib/calendav/credentials/standard.rb', line 8 def authentication @authentication end |
#host ⇒ Object (readonly)
Returns the value of attribute host.
8 9 10 |
# File 'lib/calendav/credentials/standard.rb', line 8 def host @host end |
#password ⇒ Object (readonly)
Returns the value of attribute password.
8 9 10 |
# File 'lib/calendav/credentials/standard.rb', line 8 def password @password end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
8 9 10 |
# File 'lib/calendav/credentials/standard.rb', line 8 def username @username end |