Class: Tinplate::Configuration
- Inherits:
-
Object
- Object
- Tinplate::Configuration
- Defined in:
- lib/tinplate/configuration.rb
Overview
:nodoc:
Constant Summary collapse
- SANDBOX_PRIVATE_KEY =
"6mm60lsCNIB,FwOWjJqA80QZHh9BMwc-ber4u=t^"
Instance Attribute Summary collapse
- #private_key ⇒ Object
-
#test ⇒ Object
writeonly
Sets the attribute test.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #test? ⇒ Boolean
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
10 11 12 |
# File 'lib/tinplate/configuration.rb', line 10 def initialize @test = true end |
Instance Attribute Details
#private_key ⇒ Object
18 19 20 |
# File 'lib/tinplate/configuration.rb', line 18 def private_key test? ? SANDBOX_PRIVATE_KEY : @private_key end |
#test=(value) ⇒ Object (writeonly)
Sets the attribute test
8 9 10 |
# File 'lib/tinplate/configuration.rb', line 8 def test=(value) @test = value end |
Instance Method Details
#test? ⇒ Boolean
14 15 16 |
# File 'lib/tinplate/configuration.rb', line 14 def test? !!@test end |