Class: CrystalSDK::Base

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Class Attribute Details

.keyObject

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

Raises:



9
10
11
12
# File 'lib/crystal_sdk/base.rb', line 9

def key!
  raise ApiKeyNotSet unless key
  key
end