Class: GcalConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/gcalgen/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_feedObject

Returns the value of attribute cal_feed.



3
4
5
# File 'lib/gcalgen/config.rb', line 3

def cal_feed
  @cal_feed
end

#cal_nameObject

Returns the value of attribute cal_name.



3
4
5
# File 'lib/gcalgen/config.rb', line 3

def cal_name
  @cal_name
end

#cal_passwordObject

Returns the value of attribute cal_password.



3
4
5
# File 'lib/gcalgen/config.rb', line 3

def cal_password
  @cal_password
end

#cal_userObject

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