Class: Tinplate::Configuration

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

Overview

:nodoc:

Constant Summary collapse

SANDBOX_PRIVATE_KEY =
"6mm60lsCNIB,FwOWjJqA80QZHh9BMwc-ber4u=t^"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_keyObject



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

Parameters:

  • value

    the value to set the attribute test to.



8
9
10
# File 'lib/tinplate/configuration.rb', line 8

def test=(value)
  @test = value
end

Instance Method Details

#test?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/tinplate/configuration.rb', line 14

def test?
  !!@test
end