Class: SFRest::Codebase
- Inherits:
-
Object
- Object
- SFRest::Codebase
- Defined in:
- lib/sfrest/codebase.rb
Overview
List codebases on the factory.
Instance Method Summary collapse
-
#initialize(conn) ⇒ Codebase
constructor
A new instance of Codebase.
-
#list ⇒ Hash
Lists the codebases { “stacks” => { 1 => “abcde”, 2 => ‘fghij’ } }.
Constructor Details
#initialize(conn) ⇒ Codebase
Returns a new instance of Codebase.
5 6 7 |
# File 'lib/sfrest/codebase.rb', line 5 def initialize(conn) @conn = conn end |
Instance Method Details
#list ⇒ Hash
Lists the codebases { “stacks” => { 1 => “abcde”, 2 => ‘fghij’ } }
12 13 14 |
# File 'lib/sfrest/codebase.rb', line 12 def list @conn.get('/api/v1/stacks') end |