Sha256: 93c6e19b07d03be7332495734a89aea567c0a3aef0d976326fef833f917fada2
Contents?: true
Size: 968 Bytes
Versions: 3
Compression:
Stored size: 968 Bytes
Contents
# encoding: UTF-8 # # Copyright (c) 2010-2015 GoodData Corporation. All rights reserved. # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. module GoodData module Rest # 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. class Object attr_writer :client attr_accessor :project def initialize(_opts = {}) @client = nil end def client(opts = {}) @client || GoodData::Rest::Object.client(opts) end def saved? !uri.blank? end class << self def default_client end def client(opts = { :client => GoodData.connection }) opts[:client] # || GoodData.client end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gooddata-0.6.24 | lib/gooddata/rest/object.rb |
gooddata-0.6.23 | lib/gooddata/rest/object.rb |
gooddata-0.6.22 | lib/gooddata/rest/object.rb |