Module: Prove

Defined in:
lib/prove.rb,
lib/prove/client.rb,
lib/prove/version.rb,
lib/prove/verification.rb

Defined Under Namespace

Classes: Client, Verification

Constant Summary collapse

VERSION =
"0.0.2"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.clientObject (readonly)

Returns the value of attribute client.



5
6
7
# File 'lib/prove.rb', line 5

def client
  @client
end

Class Method Details

.api_key=(key) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/prove.rb', line 6

def api_key=(key)
  if @client
    @client.api_key = key
  else
    @client = Client.new(api_key: key)
  end
end

.configure(options, &block) ⇒ Object



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

def configure(options, &block)
  @client = Client.new(options, &block)
end