Module: CryptograpiRuby

Defined in:
lib/cryptograpi_ruby.rb,
lib/cryptograpi_ruby/host.rb,
lib/cryptograpi_ruby/version.rb

Constant Summary collapse

CRYPTOGRAPI_HOST =
'api.cryptograpi.com'.freeze
VERSION =
'0.0.1.1'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_tokenObject

Returns the value of attribute api_token.



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

def api_token
  @api_token
end

.project_idObject

Returns the value of attribute project_id.



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

def project_id
  @project_id
end

Class Method Details

.config {|_self| ... } ⇒ Object

Let’s provide a straightforward way to provide options, like CryptograpiRuby.config do |c|

c.api_token = '123'
c.project_id = '345'

end

Yields:

  • (_self)

Yield Parameters:



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

def config
  yield self
end