Class: Capistrano::Calendar::Client::Base
- Inherits:
-
Object
- Object
- Capistrano::Calendar::Client::Base
- Defined in:
- lib/capistrano/calendar/client/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#configuration ⇒ Object
readonly
Returns the value of attribute configuration.
Instance Method Summary collapse
- #authenticate ⇒ Object
- #calendar_password ⇒ Object
- #calendar_username ⇒ Object
- #create_event ⇒ Object
-
#initialize(config) ⇒ Base
constructor
A new instance of Base.
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
#configuration ⇒ Object (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
#authenticate ⇒ Object
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_password ⇒ Object
15 16 17 |
# File 'lib/capistrano/calendar/client/base.rb', line 15 def calendar_password configuration.fetch(:calendar_password) end |
#calendar_username ⇒ Object
11 12 13 |
# File 'lib/capistrano/calendar/client/base.rb', line 11 def calendar_username configuration.fetch(:calendar_username) end |
#create_event ⇒ Object
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 |