Class: CrystalSDK::Base
- Inherits:
-
Object
- Object
- CrystalSDK::Base
- Defined in:
- lib/crystal_sdk/base.rb
Defined Under Namespace
Classes: ApiKeyNotSet
Constant Summary collapse
- API_URL =
'https://connect.crystalknows.com/v1'.freeze
Class Attribute Summary collapse
-
.key ⇒ Object
Returns the value of attribute key.
Class Method Summary collapse
Class Attribute Details
.key ⇒ Object
Returns the value of attribute key.
7 8 9 |
# File 'lib/crystal_sdk/base.rb', line 7 def key @key end |
Class Method Details
.key! ⇒ Object
9 10 11 12 |
# File 'lib/crystal_sdk/base.rb', line 9 def key! raise ApiKeyNotSet unless key key end |