Class: PushBot::Config

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#secretObject

Returns the value of attribute secret.



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

def secret
  @secret
end

Class Method Details

.configObject



5
6
7
# File 'lib/push_bot/config.rb', line 5

def self.config
  @config ||= new
end

.configure {|config| ... } ⇒ Object

Yields:



9
10
11
12
13
# File 'lib/push_bot/config.rb', line 9

def self.configure
  yield(config) if block_given?

  config
end