Class: Clayful::Currency

Inherits:
Object
  • Object
show all
Defined in:
lib/models/currency.rb

Constant Summary collapse

@@name =
'Currency'
@@path =
'currencies'

Class Method Summary collapse

Class Method Details

.count(*args) ⇒ Object



16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/models/currency.rb', line 16

def self.count(*args)

	Clayful.call_api({
		'model_name'       => @@name,
		'method_name'      => 'count',
		'http_method'      => 'GET',
		'path'             => '/v1/currencies/count',
		'params'           => [],
		'args'             => args
	})

end

.get(*args) ⇒ Object



29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/models/currency.rb', line 29

def self.get(*args)

	Clayful.call_api({
		'model_name'       => @@name,
		'method_name'      => 'get',
		'http_method'      => 'GET',
		'path'             => '/v1/currencies/{currencyId}',
		'params'           => ['currencyId', ],
		'args'             => args
	})

end

.list(*args) ⇒ Object



42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/models/currency.rb', line 42

def self.list(*args)

	Clayful.call_api({
		'model_name'       => @@name,
		'method_name'      => 'list',
		'http_method'      => 'GET',
		'path'             => '/v1/currencies',
		'params'           => [],
		'args'             => args
	})

end

.nameObject



8
9
10
# File 'lib/models/currency.rb', line 8

def self.name
	@@name
end

.pathObject



12
13
14
# File 'lib/models/currency.rb', line 12

def self.path
	@@path
end