Class: Calendav::Credentials::Standard

Inherits:
Object
  • Object
show all
Defined in:
lib/calendav/credentials/standard.rb

Direct Known Subclasses

Apple, FastMail, Google

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#authenticationObject (readonly)

Returns the value of attribute authentication.



8
9
10
# File 'lib/calendav/credentials/standard.rb', line 8

def authentication
  @authentication
end

#hostObject (readonly)

Returns the value of attribute host.



8
9
10
# File 'lib/calendav/credentials/standard.rb', line 8

def host
  @host
end

#passwordObject (readonly)

Returns the value of attribute password.



8
9
10
# File 'lib/calendav/credentials/standard.rb', line 8

def password
  @password
end

#usernameObject (readonly)

Returns the value of attribute username.



8
9
10
# File 'lib/calendav/credentials/standard.rb', line 8

def username
  @username
end