Module: Bugly::APIOperations::Update

Included in:
Category, Issue, Label, Milestone, Page, Project, Status, User
Defined in:
lib/bugly.rb

Instance Method Summary collapse

Instance Method Details

#saveObject



118
119
120
121
122
123
124
125
126
# File 'lib/bugly.rb', line 118

def save
  if @unsaved_values.length > 0
    values = {}
    @unsaved_values.each { |k| values[k] = @values[k] }
    response, api_key = Bugly.request(:post, url, @api_key, values)
    refresh_from(response, api_key)
  end
  self
end