Class: SFRest::Info

Inherits:
Object
  • Object
show all
Defined in:
lib/sfrest/info.rb

Overview

Retrieve Site Factory info.

Instance Method Summary collapse

Constructor Details

#initialize(conn) ⇒ Info

Returns a new instance of Info.

Parameters:



7
8
9
# File 'lib/sfrest/info.rb', line 7

def initialize(conn)
  @conn = conn
end

Instance Method Details

#sfinfoHash{ "factory_version" => String, "time" => "2016-10-28T09:25:26+00:00"}

Gets information about the Site Factory.

Returns:

  • (Hash{ "factory_version" => String, "time" => "2016-10-28T09:25:26+00:00"})


14
15
16
# File 'lib/sfrest/info.rb', line 14

def sfinfo
  @conn.get('/api/v1/sf-info')
end