Class: Ksef::Environments::Environment
- Inherits:
-
Data
- Object
- Data
- Ksef::Environments::Environment
- Defined in:
- lib/ksef/environments.rb
Instance Attribute Summary collapse
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#supports_test_data ⇒ Object
readonly
Returns the value of attribute supports_test_data.
Instance Method Summary collapse
- #production? ⇒ Boolean
-
#test_data_api? ⇒ Boolean
TEST alone exposes the
/testdata/*helper API and/collective-identifiers*.
Instance Attribute Details
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url
16 17 18 |
# File 'lib/ksef/environments.rb', line 16 def base_url @base_url end |
#name ⇒ Object (readonly)
Returns the value of attribute name
16 17 18 |
# File 'lib/ksef/environments.rb', line 16 def name @name end |
#supports_test_data ⇒ Object (readonly)
Returns the value of attribute supports_test_data
16 17 18 |
# File 'lib/ksef/environments.rb', line 16 def supports_test_data @supports_test_data end |
Instance Method Details
#production? ⇒ Boolean
21 |
# File 'lib/ksef/environments.rb', line 21 def production? = name == :prod |
#test_data_api? ⇒ Boolean
TEST alone exposes the /testdata/* helper API and /collective-identifiers*.
Code touching those paths must be guarded on this.
19 |
# File 'lib/ksef/environments.rb', line 19 def test_data_api? = supports_test_data |