Class: CtGov::Investigator

Inherits:
Object
  • Object
show all
Defined in:
lib/ct_gov/investigator.rb

Instance Method Summary collapse

Constructor Details

#initialize(raw_investigator) ⇒ Investigator

Returns a new instance of Investigator.



4
5
6
# File 'lib/ct_gov/investigator.rb', line 4

def initialize(raw_investigator)
  @raw_investigator = raw_investigator
end

Instance Method Details

#affiliationObject



8
9
10
# File 'lib/ct_gov/investigator.rb', line 8

def affiliation
  @raw_investigator['affiliation']
end

#nameObject



12
13
14
# File 'lib/ct_gov/investigator.rb', line 12

def name
  @raw_investigator['last_name']
end

#roleObject



16
17
18
# File 'lib/ct_gov/investigator.rb', line 16

def role
  @raw_investigator['role']
end