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
client[W]
json[RW]
project[RW]
raw_data[RW]
to_hash[RW]
to_json[RW]
Public Class Methods
client(opts = { :client => GoodData.connection })
click to toggle source
# File lib/gooddata/rest/object.rb, line 65 def client(opts = { :client => GoodData.connection }) opts[:client] # || GoodData.client end
default_client()
click to toggle source
# File lib/gooddata/rest/object.rb, line 62 def default_client end
new(_opts = {})
click to toggle source
# File lib/gooddata/rest/object.rb, line 49 def initialize(_opts = {}) @client = nil end
Public Instance Methods
client(opts = {})
click to toggle source
# File lib/gooddata/rest/object.rb, line 53 def client(opts = {}) @client || GoodData::Rest::Object.client(opts) end
saved?()
click to toggle source
# File lib/gooddata/rest/object.rb, line 57 def saved? !uri.blank? end