Class: PartyBus::Configuration
- Inherits:
-
Object
- Object
- PartyBus::Configuration
- Defined in:
- lib/party_bus/configuration.rb
Instance Attribute Summary collapse
-
#api_url ⇒ Object
Returns the value of attribute api_url.
-
#connection_id ⇒ Object
Returns the value of attribute connection_id.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#secret ⇒ Object
Returns the value of attribute secret.
-
#stripped_attributes ⇒ Object
Returns the value of attribute stripped_attributes.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 14 15 |
# File 'lib/party_bus/configuration.rb', line 9 def initialize self.api_url = "https://partybus-api.aridsoftware.com" self.connection_id = nil self.enabled = ENV['RUBY_ENV'] != 'test' && ENV['RAILS_ENV'] != 'test' self.secret = nil self.stripped_attributes = [] end |
Instance Attribute Details
#api_url ⇒ Object
Returns the value of attribute api_url.
3 4 5 |
# File 'lib/party_bus/configuration.rb', line 3 def api_url @api_url end |
#connection_id ⇒ Object
Returns the value of attribute connection_id.
4 5 6 |
# File 'lib/party_bus/configuration.rb', line 4 def connection_id @connection_id end |
#enabled ⇒ Object
Returns the value of attribute enabled.
5 6 7 |
# File 'lib/party_bus/configuration.rb', line 5 def enabled @enabled end |
#secret ⇒ Object
Returns the value of attribute secret.
6 7 8 |
# File 'lib/party_bus/configuration.rb', line 6 def secret @secret end |
#stripped_attributes ⇒ Object
Returns the value of attribute stripped_attributes.
7 8 9 |
# File 'lib/party_bus/configuration.rb', line 7 def stripped_attributes @stripped_attributes end |