Class: Capistrano::Calendar::Client::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/capistrano/calendar/client/base.rb

Direct Known Subclasses

Google

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Base

Returns a new instance of Base.



5
6
7
# File 'lib/capistrano/calendar/client/base.rb', line 5

def initialize(config)
  @configuration = config
end

Instance Attribute Details

#configurationObject (readonly)

Returns the value of attribute configuration.



9
10
11
# File 'lib/capistrano/calendar/client/base.rb', line 9

def configuration
  @configuration
end

Instance Method Details

#authenticateObject

Raises:

  • (NotImplementedError)


19
20
21
# File 'lib/capistrano/calendar/client/base.rb', line 19

def authenticate
  raise NotImplementedError, "`authenticate' is not implemented by #{self.class.name}"
end

#calendar_passwordObject



15
16
17
# File 'lib/capistrano/calendar/client/base.rb', line 15

def calendar_password
  configuration.fetch(:calendar_password)
end

#calendar_usernameObject



11
12
13
# File 'lib/capistrano/calendar/client/base.rb', line 11

def calendar_username
  configuration.fetch(:calendar_username)
end

#create_eventObject

Raises:

  • (NotImplementedError)


23
24
25
# File 'lib/capistrano/calendar/client/base.rb', line 23

def create_event
  raise NotImplementedError, "`create_event' is not implemented by #{self.class.name}"
end