Class: PartyBus::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/party_bus/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_urlObject

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_idObject

Returns the value of attribute connection_id.



4
5
6
# File 'lib/party_bus/configuration.rb', line 4

def connection_id
  @connection_id
end

#enabledObject

Returns the value of attribute enabled.



5
6
7
# File 'lib/party_bus/configuration.rb', line 5

def enabled
  @enabled
end

#secretObject

Returns the value of attribute secret.



6
7
8
# File 'lib/party_bus/configuration.rb', line 6

def secret
  @secret
end

#stripped_attributesObject

Returns the value of attribute stripped_attributes.



7
8
9
# File 'lib/party_bus/configuration.rb', line 7

def stripped_attributes
  @stripped_attributes
end