Module: Coconut

Defined in:
lib/coconutrb.rb,
lib/coconut/api.rb,
lib/coconut/job.rb,
lib/coconut/error.rb,
lib/coconut/client.rb,
lib/coconut/version.rb,
lib/coconut/metadata.rb

Defined Under Namespace

Classes: API, Client, Error, Job, Metadata

Constant Summary collapse

ENDPOINT =
"https://api.coconut.co/v2"
VERSION =
"3.0.1"

Class Method Summary collapse

Class Method Details

.api_keyObject



15
16
17
# File 'lib/coconutrb.rb', line 15

def self.api_key
  @api_key
end

.api_key=(key) ⇒ Object



11
12
13
# File 'lib/coconutrb.rb', line 11

def self.api_key=(key)
  @api_key = key
end

.default_clientObject



2
3
4
5
6
7
8
# File 'lib/coconut/client.rb', line 2

def self.default_client
  Client.new({
    api_key: Coconut.api_key,
    region: Coconut.region,
    endpoint: Coconut.endpoint
  })
end

.endpointObject



31
32
33
# File 'lib/coconutrb.rb', line 31

def self.endpoint
  @endpoint
end

.endpoint=(endpoint) ⇒ Object



27
28
29
# File 'lib/coconutrb.rb', line 27

def self.endpoint=(endpoint)
  @endpoint = endpoint
end

.notificationObject



39
40
41
# File 'lib/coconutrb.rb', line 39

def self.notification
  @notification
end

.notification=(notification) ⇒ Object



35
36
37
# File 'lib/coconutrb.rb', line 35

def self.notification=(notification)
  @notification = notification
end

.regionObject



23
24
25
# File 'lib/coconutrb.rb', line 23

def self.region
  @region
end

.region=(region) ⇒ Object



19
20
21
# File 'lib/coconutrb.rb', line 19

def self.region=(region)
  @region = region
end

.storageObject



47
48
49
# File 'lib/coconutrb.rb', line 47

def self.storage
  @storage
end

.storage=(storage) ⇒ Object



43
44
45
# File 'lib/coconutrb.rb', line 43

def self.storage=(storage)
  @storage = storage
end