Class: Pushbots::Config
- Inherits:
-
Object
- Object
- Pushbots::Config
- Defined in:
- lib/pushbots/config.rb
Overview
Config class
Class Attribute Summary collapse
-
.config ⇒ Object
Returns the value of attribute config.
Instance Attribute Summary collapse
-
#application_id ⇒ Object
Returns the value of attribute application_id.
-
#application_secret ⇒ Object
Returns the value of attribute application_secret.
-
#pushbots_url ⇒ Object
readonly
Returns the value of attribute pushbots_url.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
10 11 12 |
# File 'lib/pushbots/config.rb', line 10 def initialize @pushbots_url = 'https://api.pushbots.com/push/one' end |
Class Attribute Details
.config ⇒ Object
Returns the value of attribute config.
7 8 9 |
# File 'lib/pushbots/config.rb', line 7 def config @config end |
Instance Attribute Details
#application_id ⇒ Object
Returns the value of attribute application_id.
4 5 6 |
# File 'lib/pushbots/config.rb', line 4 def application_id @application_id end |
#application_secret ⇒ Object
Returns the value of attribute application_secret.
4 5 6 |
# File 'lib/pushbots/config.rb', line 4 def application_secret @application_secret end |
#pushbots_url ⇒ Object (readonly)
Returns the value of attribute pushbots_url.
5 6 7 |
# File 'lib/pushbots/config.rb', line 5 def pushbots_url @pushbots_url end |
Class Method Details
.configure {|config| ... } ⇒ Object
18 19 20 |
# File 'lib/pushbots/config.rb', line 18 def self.configure yield(config) if block_given? end |