Class: Quilt::Configuration
- Inherits:
-
Object
- Object
- Quilt::Configuration
- Defined in:
- lib/quilt_rails/configuration.rb
Instance Attribute Summary collapse
-
#react_server_host ⇒ Object
Returns the value of attribute react_server_host.
-
#react_server_protocol ⇒ Object
Returns the value of attribute react_server_protocol.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 12 13 |
# File 'lib/quilt_rails/configuration.rb', line 7 def initialize ip = ENV['REACT_SERVER_IP'] || 'localhost' port = ENV['REACT_SERVER_PORT'] || 8081 @react_server_host = "#{ip}:#{port}" @react_server_protocol = ENV['REACT_SERVER_PROTOCOL'] || 'http' end |
Instance Attribute Details
#react_server_host ⇒ Object
Returns the value of attribute react_server_host.
5 6 7 |
# File 'lib/quilt_rails/configuration.rb', line 5 def react_server_host @react_server_host end |
#react_server_protocol ⇒ Object
Returns the value of attribute react_server_protocol.
5 6 7 |
# File 'lib/quilt_rails/configuration.rb', line 5 def react_server_protocol @react_server_protocol end |