gonebusy-ruby-client 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c8916997af28d5f21e8c901f60f57d13c9cb3e8
|
4
|
+
data.tar.gz: 0fb08ee09a6ae7bbb02fe86e19fd690c8a71355a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e6d85774c0e791f9adf2471d73954458ebdc5442541bb65a54b7c5deea6e674c1bd0c7b04b3e95bac47ca7cb8b757908fd66740c5a66c3a0086742800380c82
|
7
|
+
data.tar.gz: 2cc106e3d5989d6105e1f49e6d56641d2880232575071e481800f629ed00fe279fb0c2d751caddb1cfb98940e2a3466d827e02bacd7d7386ef7e254ac7c36e15
|
@@ -4,19 +4,19 @@ module Gonebusy
|
|
4
4
|
class CreatePricingModelResponse < BaseModel
|
5
5
|
# TODO: Write general description for this method
|
6
6
|
# @return [EntitiesPricingModelResponse]
|
7
|
-
attr_accessor :
|
7
|
+
attr_accessor :pricing_model
|
8
8
|
|
9
9
|
# A mapping from model property names to API property names
|
10
10
|
def self.names
|
11
11
|
if @hash.nil?
|
12
12
|
@hash = {}
|
13
|
-
@hash["
|
13
|
+
@hash["pricing_model"] = "pricing_model"
|
14
14
|
end
|
15
15
|
@hash
|
16
16
|
end
|
17
17
|
|
18
|
-
def initialize(
|
19
|
-
@
|
18
|
+
def initialize(pricing_model = nil)
|
19
|
+
@pricing_model = pricing_model
|
20
20
|
end
|
21
21
|
|
22
22
|
# Creates an instance of the object from a hash
|
@@ -25,10 +25,10 @@ module Gonebusy
|
|
25
25
|
nil
|
26
26
|
else
|
27
27
|
# Extract variables from the hash
|
28
|
-
|
28
|
+
pricing_model = EntitiesPricingModelResponse.from_hash(hash["pricing_model"]) if hash["pricing_model"]
|
29
29
|
|
30
30
|
# Create object from extracted values
|
31
|
-
CreatePricingModelResponse.new(
|
31
|
+
CreatePricingModelResponse.new(pricing_model)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
end
|
@@ -4,19 +4,19 @@ module Gonebusy
|
|
4
4
|
class GetPricingModelByIdResponse < BaseModel
|
5
5
|
# TODO: Write general description for this method
|
6
6
|
# @return [EntitiesPricingModelResponse]
|
7
|
-
attr_accessor :
|
7
|
+
attr_accessor :pricing_model
|
8
8
|
|
9
9
|
# A mapping from model property names to API property names
|
10
10
|
def self.names
|
11
11
|
if @hash.nil?
|
12
12
|
@hash = {}
|
13
|
-
@hash["
|
13
|
+
@hash["pricing_model"] = "pricing_model"
|
14
14
|
end
|
15
15
|
@hash
|
16
16
|
end
|
17
17
|
|
18
|
-
def initialize(
|
19
|
-
@
|
18
|
+
def initialize(pricing_model = nil)
|
19
|
+
@pricing_model = pricing_model
|
20
20
|
end
|
21
21
|
|
22
22
|
# Creates an instance of the object from a hash
|
@@ -25,10 +25,10 @@ module Gonebusy
|
|
25
25
|
nil
|
26
26
|
else
|
27
27
|
# Extract variables from the hash
|
28
|
-
|
28
|
+
pricing_model = EntitiesPricingModelResponse.from_hash(hash["pricing_model"]) if hash["pricing_model"]
|
29
29
|
|
30
30
|
# Create object from extracted values
|
31
|
-
GetPricingModelByIdResponse.new(
|
31
|
+
GetPricingModelByIdResponse.new(pricing_model)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
end
|
@@ -4,19 +4,19 @@ module Gonebusy
|
|
4
4
|
class UpdatePricingModelByIdResponse < BaseModel
|
5
5
|
# TODO: Write general description for this method
|
6
6
|
# @return [EntitiesPricingModelResponse]
|
7
|
-
attr_accessor :
|
7
|
+
attr_accessor :pricing_model
|
8
8
|
|
9
9
|
# A mapping from model property names to API property names
|
10
10
|
def self.names
|
11
11
|
if @hash.nil?
|
12
12
|
@hash = {}
|
13
|
-
@hash["
|
13
|
+
@hash["pricing_model"] = "pricing_model"
|
14
14
|
end
|
15
15
|
@hash
|
16
16
|
end
|
17
17
|
|
18
|
-
def initialize(
|
19
|
-
@
|
18
|
+
def initialize(pricing_model = nil)
|
19
|
+
@pricing_model = pricing_model
|
20
20
|
end
|
21
21
|
|
22
22
|
# Creates an instance of the object from a hash
|
@@ -25,10 +25,10 @@ module Gonebusy
|
|
25
25
|
nil
|
26
26
|
else
|
27
27
|
# Extract variables from the hash
|
28
|
-
|
28
|
+
pricing_model = EntitiesPricingModelResponse.from_hash(hash["pricing_model"]) if hash["pricing_model"]
|
29
29
|
|
30
30
|
# Create object from extracted values
|
31
|
-
UpdatePricingModelByIdResponse.new(
|
31
|
+
UpdatePricingModelByIdResponse.new(pricing_model)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gonebusy-ruby-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Agranov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|