Method: GoodData::Client#save
- Defined in:
- lib/gooddata/models/client.rb
permalink #save ⇒ GoodData::Client
Creates or updates a client instance on the API.
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 |