Class: GcalConfig
- Inherits:
-
Object
- Object
- GcalConfig
- Defined in:
- lib/gcalgen/config.rb
Instance Attribute Summary collapse
-
#cal_feed ⇒ Object
Returns the value of attribute cal_feed.
-
#cal_name ⇒ Object
Returns the value of attribute cal_name.
-
#cal_password ⇒ Object
Returns the value of attribute cal_password.
-
#cal_user ⇒ Object
Returns the value of attribute cal_user.
Instance Method Summary collapse
-
#feed(feed) ⇒ Object
DSL functions.
-
#initialize(name) ⇒ GcalConfig
constructor
A new instance of GcalConfig.
- #password(password) ⇒ Object
- #user(user) ⇒ Object
Constructor Details
#initialize(name) ⇒ GcalConfig
Returns a new instance of GcalConfig.
5 6 7 |
# File 'lib/gcalgen/config.rb', line 5 def initialize(name) @cal_name = name end |
Instance Attribute Details
#cal_feed ⇒ Object
Returns the value of attribute cal_feed.
3 4 5 |
# File 'lib/gcalgen/config.rb', line 3 def cal_feed @cal_feed end |
#cal_name ⇒ Object
Returns the value of attribute cal_name.
3 4 5 |
# File 'lib/gcalgen/config.rb', line 3 def cal_name @cal_name end |
#cal_password ⇒ Object
Returns the value of attribute cal_password.
3 4 5 |
# File 'lib/gcalgen/config.rb', line 3 def cal_password @cal_password end |
#cal_user ⇒ Object
Returns the value of attribute cal_user.
3 4 5 |
# File 'lib/gcalgen/config.rb', line 3 def cal_user @cal_user end |
Instance Method Details
#feed(feed) ⇒ Object
DSL functions
13 14 15 |
# File 'lib/gcalgen/config.rb', line 13 def feed(feed) @cal_feed = feed end |
#password(password) ⇒ Object
21 22 23 |
# File 'lib/gcalgen/config.rb', line 21 def password(password) @cal_password = password end |
#user(user) ⇒ Object
17 18 19 |
# File 'lib/gcalgen/config.rb', line 17 def user(user) @cal_user = user end |