Class: SFRest::Info
- Inherits:
-
Object
- Object
- SFRest::Info
- Defined in:
- lib/sfrest/info.rb
Overview
Retrieve Site Factory info.
Instance Method Summary collapse
-
#initialize(conn) ⇒ Info
constructor
A new instance of Info.
-
#sfinfo ⇒ Hash{ "factory_version" => String, "time" => "2016-10-28T09:25:26+00:00"}
Gets information about the Site Factory.
Constructor Details
#initialize(conn) ⇒ Info
Returns a new instance of Info.
7 8 9 |
# File 'lib/sfrest/info.rb', line 7 def initialize(conn) @conn = conn end |
Instance Method Details
#sfinfo ⇒ Hash{ "factory_version" => String, "time" => "2016-10-28T09:25:26+00:00"}
Gets information about the Site Factory.
14 15 16 |
# File 'lib/sfrest/info.rb', line 14 def sfinfo @conn.get('/api/v1/sf-info') end |