### Product Examples If you are unfamiliar with fog, we recommend reading our [getting started](getting_started.md) guide. #### Product Service SoftLayer has Product Service that is used for complex ordering process, so we support getting information on packages and items. All data available on the real api is available using the Fog.mock! so you can provide a real experience using mocks. This is the first version of this service and our intention is to support more feature and allow reuse on the buying process. #### Create a connection to SoftLayer Product Service ```ruby require 'fog/softlayer' @sl = Fog::Softlayer[:product] ``` #### Use the Models 1. List all packages ```ruby @sl.packages # list all packages ``` 1. Get first package ```ruby pkg = @sl.packages.first # => ``` 1. Get items for a package. ```ruby items = @sl.packages.first.items ``` items will be a collection of Fog::Softlayer::Product::Item models. 1. Get a specific item ```ruby @sl.packages.first.items.get(559) # =>