From 7836e2d13f5ceeb4c606cdd7907d3710be1ffb59 Mon Sep 17 00:00:00 2001 From: ArtsiomMusin Date: Wed, 22 Mar 2017 14:44:57 +0300 Subject: [PATCH] Change available locations to regions for Product Package --- doc_src/ContributionGuide.md | 3 +-- lib/softlayer/ProductPackage.rb | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/doc_src/ContributionGuide.md b/doc_src/ContributionGuide.md index 49c29ee..cd4d91f 100644 --- a/doc_src/ContributionGuide.md +++ b/doc_src/ContributionGuide.md @@ -64,7 +64,7 @@ gems are built into the `pkg` directory and will have a name of the form `softla You can install your modified gem to your system with the gem command: - $ bundle gem install pkg/softlayer_api-.gem + $ bundle exec gem install pkg/softlayer_api-.gem (don't forget to substitute the version you are installing where the `` tag appears in the command line above) @@ -138,4 +138,3 @@ If you intend to offer new models, please carefully review the Model Layer docum # Submitting Changes Contributions are made to the `softlayer_api` Gem by submitting a pull-request on GitHub. The community will review pull requests and offer constructive advice on improvements. The determination on whether a pull-request will be accepted into the gem is made at the sole discretion of SoftLayer with the wise counsel of the community. - diff --git a/lib/softlayer/ProductPackage.rb b/lib/softlayer/ProductPackage.rb index 72116f4..c83eeb5 100644 --- a/lib/softlayer/ProductPackage.rb +++ b/lib/softlayer/ProductPackage.rb @@ -45,7 +45,7 @@ class ProductPackage < ModelBase ## # :attr_reader: available_locations # The list of locations where this product package is available. - sl_attr :available_locations, 'availableLocations' + sl_attr :available_locations, 'regions' ## # Retrieve the set of product categories needed to make an order for this product package. @@ -230,7 +230,7 @@ def self.additional_products_package(client = nil) "groups.prices.requiredCoreCount" ].join(",") + "]" def self.default_object_mask(root) - "#{root}[id,name,description,availableLocations.location]" + "#{root}[id,name,description,regions]" end end end # SoftLayer