Method: PatientZero::Source#initialize

Defined in:
lib/patient_zero/source.rb

#initialize(attributes) ⇒ Source

Returns a new instance of Source.



7
8
9
10
11
12
13
14
15
# File 'lib/patient_zero/source.rb', line 7

def initialize attributes
  @id = attributes.fetch 'id'
  @name = attributes.fetch 'name'
  @invalid = attributes.fetch 'is_invalid'
  @tracked = attributes.fetch 'is_tracked'
  @platform = attributes.fetch 'platform'
  @delete_id = attributes.fetch 'delete_id'
  @token = attributes.fetch 'token'
end