Class: Clayful::ShippingPolicy

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

Constant Summary collapse

@@name =
'ShippingPolicy'
@@path =
'shipping/policies'

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/shipping_policy.rb', line 16

def self.count(*args)

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

end

.get(*args) ⇒ Object



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

def self.get(*args)

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

end

.list(*args) ⇒ Object



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

def self.list(*args)

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

end

.nameObject



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

def self.name
  @@name
end

.pathObject



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

def self.path
  @@path
end