class GoodData::Rest::Object
Base class dealing with REST endpoints
MUST Be interface for objects dealing with REST endpoints MUST provide way to work with remote REST-like API in unified manner. MUST NOT create new connections.
Attributes
Public Class Methods
Source
# File lib/gooddata/rest/object.rb, line 65 def client(opts = { :client => GoodData.connection }) opts[:client] # || GoodData.client end
Source
# File lib/gooddata/rest/object.rb, line 49 def initialize(_opts = {}) @client = nil end
Public Instance Methods
Source
# File lib/gooddata/rest/object.rb, line 53 def client(opts = {}) @client || GoodData::Rest::Object.client(opts) end