Class: Spout::Models::Subject

Inherits:
Object
  • Object
show all
Defined in:
lib/spout/models/subject.rb

Overview

Subject encapsulates records for individuals specified by an identifier

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#_csvObject

Returns the value of attribute _csv.



7
8
9
# File 'lib/spout/models/subject.rb', line 7

def _csv
  @_csv
end

#_visitObject

Returns the value of attribute _visit.



7
8
9
# File 'lib/spout/models/subject.rb', line 7

def _visit
  @_visit
end

Class Method Details

.create {|subject| ... } ⇒ Object

Yields:

  • (subject)


9
10
11
12
13
# File 'lib/spout/models/subject.rb', line 9

def self.create
  subject = new
  yield subject if block_given?
  subject
end