Method: Bugly::BuglyObject#initialize

Defined in:
lib/bugly.rb

#initialize(id = nil, api_key = nil) ⇒ BuglyObject

Returns a new instance of BuglyObject.



170
171
172
173
174
175
176
177
178
# File 'lib/bugly.rb', line 170

def initialize(id=nil, api_key=nil)
  @api_key = api_key
  @values = {}
  # This really belongs in APIResource, but not putting it there allows us
  # to have a unified inspect method
  @unsaved_values = Set.new
  @transient_values = Set.new
  self.id = id if id
end