Class: Tinplate::Configuration
- Inherits:
-
Object
- Object
- Tinplate::Configuration
- Defined in:
- lib/tinplate/configuration.rb
Overview
:nodoc:
Constant Summary collapse
- SANDBOX_PUBLIC_KEY =
"LCkn,2K7osVwkX95K4Oy"- SANDBOX_PRIVATE_KEY =
"6mm60lsCNIB,FwOWjJqA80QZHh9BMwc-ber4u=t^"
Instance Attribute Summary collapse
- #private_key ⇒ Object
- #public_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.
12 13 14 |
# File 'lib/tinplate/configuration.rb', line 12 def initialize @test = true end |
Instance Attribute Details
#private_key ⇒ Object
24 25 26 |
# File 'lib/tinplate/configuration.rb', line 24 def private_key test? ? SANDBOX_PRIVATE_KEY : @private_key end |
#public_key ⇒ Object
20 21 22 |
# File 'lib/tinplate/configuration.rb', line 20 def public_key test? ? SANDBOX_PUBLIC_KEY : @public_key end |
#test=(value) ⇒ Object (writeonly)
Sets the attribute test
10 11 12 |
# File 'lib/tinplate/configuration.rb', line 10 def test=(value) @test = value end |
Instance Method Details
#test? ⇒ Boolean
16 17 18 |
# File 'lib/tinplate/configuration.rb', line 16 def test? !!@test end |