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
-
.api_token ⇒ Object
Returns the value of attribute api_token.
-
.project_id ⇒ Object
Returns the value of attribute project_id.
Class Method Summary collapse
-
.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.
Class Attribute Details
.api_token ⇒ Object
Returns the value of attribute api_token.
5 6 7 |
# File 'lib/cryptograpi_ruby.rb', line 5 def api_token @api_token end |
.project_id ⇒ Object
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
14 15 16 |
# File 'lib/cryptograpi_ruby.rb', line 14 def config yield self end |