Class: BERGCloud::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/bergcloud/client.rb

Class Method Summary collapse

Class Method Details

.api_tokenObject



5
6
7
# File 'lib/bergcloud/client.rb', line 5

def self.api_token
  @api_token
end

.api_token=(api_token) ⇒ Object



9
10
11
# File 'lib/bergcloud/client.rb', line 9

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

.delete(path, params = {}) ⇒ Object



21
22
23
# File 'lib/bergcloud/client.rb', line 21

def self.delete(path, params = {})
  request(path, params, 'delete')
end

.get(path, params = {}) ⇒ Object



13
14
15
# File 'lib/bergcloud/client.rb', line 13

def self.get(path, params = {})
  request(path, params, 'get')
end

.post(path, params = {}) ⇒ Object



17
18
19
# File 'lib/bergcloud/client.rb', line 17

def self.post(path, params = {})
  request(path, params, 'post')
end

.put(path, params = {}) ⇒ Object



25
26
27
# File 'lib/bergcloud/client.rb', line 25

def self.put(path, params = {})
  request(path, params, 'put')
end