Module: Investolink::Operations::Update
- Included in:
- Asset, Donation, Fundallocation, Issue, IssueTransaction, IssuerOwnership, Project, Reward, Sociallink
- Defined in:
- lib/investolink/operations/update.rb
Instance Method Summary collapse
Instance Method Details
#save ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/investolink/operations/update.rb', line 4 def save if @unsaved_values.length > 0 values = {} @unsaved_values.each { |k| values[k] = @values[k] } response, api_key = Investolink.request(:post, self.resource_url + '/update', @api_key, @api_token, values) refresh_from(response, api_key, api_token) end self end |