Method: GoodData::Client#save

Defined in:
lib/gooddata/models/client.rb

#saveGoodData::Client

Creates or updates a client instance on the API.

Returns:

[View source]

201
202
203
204
205
206
207
208
209
210
# File 'lib/gooddata/models/client.rb', line 201

def save
  if uri
    client.put(uri, json)
  else
    data_product = segment.data_product
    res = client.post(self.class.base_uri(domain, data_product), json)
    @json = res
  end
  self
end