Class: PushBot::Config
- Inherits:
-
Object
- Object
- PushBot::Config
- Defined in:
- lib/push_bot/config.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#secret ⇒ Object
Returns the value of attribute secret.
Class Method Summary collapse
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/push_bot/config.rb', line 3 def id @id end |
#secret ⇒ Object
Returns the value of attribute secret.
3 4 5 |
# File 'lib/push_bot/config.rb', line 3 def secret @secret end |
Class Method Details
.config ⇒ Object
5 6 7 |
# File 'lib/push_bot/config.rb', line 5 def self.config @config ||= new end |
.configure {|config| ... } ⇒ Object
9 10 11 12 13 |
# File 'lib/push_bot/config.rb', line 9 def self.configure yield(config) if block_given? config end |