Module: Spice::Connection::Environments
- Included in:
- Spice::Connection
- Defined in:
- lib/spice/connection/environments.rb
Instance Method Summary collapse
-
#environment(name) ⇒ Spice::Environment
Retrieve a single environment.
-
#environments(options = Mash.new) ⇒ Array<Spice::Environment>
A collection of environments.
Instance Method Details
#environment(name) ⇒ Spice::Environment
Retrieve a single environment
20 21 22 23 |
# File 'lib/spice/connection/environments.rb', line 20 def environment(name) attributes = get("/environments/#{name}") Spice::Environment.get_or_new(attributes) end |
#environments(options = Mash.new) ⇒ Array<Spice::Environment>
A collection of environments
10 11 12 |
# File 'lib/spice/connection/environments.rb', line 10 def environments(=Mash.new) search('environment', ) end |