Module: Argonuts

Defined in:
lib/argonuts/api.rb,
lib/argonuts/job.rb,
lib/argonuts-ruby.rb,
lib/argonuts/error.rb,
lib/argonuts/client.rb,
lib/argonuts/version.rb,
lib/argonuts/metadata.rb

Defined Under Namespace

Classes: API, Client, Error, Job, Metadata

Constant Summary collapse

ENDPOINT =
"https://argonuts.co/api/v1/"
VERSION =
"0.1.6"

Class Method Summary collapse

Class Method Details

.api_keyObject



15
16
17
# File 'lib/argonuts-ruby.rb', line 15

def self.api_key
  @api_key
end

.api_key=(key) ⇒ Object



11
12
13
# File 'lib/argonuts-ruby.rb', line 11

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

.default_clientObject



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

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

.endpointObject



31
32
33
# File 'lib/argonuts-ruby.rb', line 31

def self.endpoint
  @endpoint
end

.endpoint=(endpoint) ⇒ Object

def self.region=(region)

@region = region

end

def self.region

@region

end



27
28
29
# File 'lib/argonuts-ruby.rb', line 27

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

.notificationObject



39
40
41
# File 'lib/argonuts-ruby.rb', line 39

def self.notification
  @notification
end

.notification=(notification) ⇒ Object



35
36
37
# File 'lib/argonuts-ruby.rb', line 35

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

.storageObject



47
48
49
# File 'lib/argonuts-ruby.rb', line 47

def self.storage
  @storage
end

.storage=(storage) ⇒ Object



43
44
45
# File 'lib/argonuts-ruby.rb', line 43

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