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: 3b2d5f733660c7afd7ce6d09a5b7ce007a32c2fb
4
- data.tar.gz: 04ec3d18b5f7abf7f0488c0f5dd320df4804164b
3
+ metadata.gz: 2c8916997af28d5f21e8c901f60f57d13c9cb3e8
4
+ data.tar.gz: 0fb08ee09a6ae7bbb02fe86e19fd690c8a71355a
5
5
  SHA512:
6
- metadata.gz: 8a6fff635ce3817420291bc61c590e1b594afb88545a011bba57da9596e2d6125867b8d4b4d450d0bb29791dafc63fcbcf3650efd58e8901c1713ab321b07b36
7
- data.tar.gz: 3bddafa25b76d6f9709863f0b7232f1c5bd72617b0031e91d7dd7c2ff9556dad607f845501ab58b4bc936ee208e364024f656e9f4f7e02c5d3d39cf146215fb8
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 :pricing_models
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["pricing_models"] = "pricing_models"
13
+ @hash["pricing_model"] = "pricing_model"
14
14
  end
15
15
  @hash
16
16
  end
17
17
 
18
- def initialize(pricing_models = nil)
19
- @pricing_models = pricing_models
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
- pricing_models = EntitiesPricingModelResponse.from_hash(hash["pricing_models"]) if hash["pricing_models"]
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(pricing_models)
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 :pricing_models
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["pricing_models"] = "pricing_models"
13
+ @hash["pricing_model"] = "pricing_model"
14
14
  end
15
15
  @hash
16
16
  end
17
17
 
18
- def initialize(pricing_models = nil)
19
- @pricing_models = pricing_models
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
- pricing_models = EntitiesPricingModelResponse.from_hash(hash["pricing_models"]) if hash["pricing_models"]
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(pricing_models)
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 :pricing_models
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["pricing_models"] = "pricing_models"
13
+ @hash["pricing_model"] = "pricing_model"
14
14
  end
15
15
  @hash
16
16
  end
17
17
 
18
- def initialize(pricing_models = nil)
19
- @pricing_models = pricing_models
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
- pricing_models = EntitiesPricingModelResponse.from_hash(hash["pricing_models"]) if hash["pricing_models"]
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(pricing_models)
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.3
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-16 00:00:00.000000000 Z
11
+ date: 2017-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday