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.
7 8 9 |
# File 'lib/sfrest/codebase.rb', line 7 def initialize(conn) @conn = conn end |
Instance Method Details
#list ⇒ Hash
Lists the codebases { “stacks” => { 1 => “abcde”, 2 => ‘fghij’ } }
14 15 16 |
# File 'lib/sfrest/codebase.rb', line 14 def list @conn.get('/api/v1/stacks') end |