Class: OpenEhr::RM::Support::AssumedTypes::List

Inherits:
Object
  • Object
show all
Defined in:
lib/open_ehr/rm/support/assumed_types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(arg) ⇒ List

Returns a new instance of List.



25
26
27
# File 'lib/open_ehr/rm/support/assumed_types.rb', line 25

def initialize(arg)
  @content = arg
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



23
24
25
# File 'lib/open_ehr/rm/support/assumed_types.rb', line 23

def content
  @content
end

Instance Method Details

#firstObject



29
30
31
# File 'lib/open_ehr/rm/support/assumed_types.rb', line 29

def first
  @content.first
end

#lastObject



33
34
35
# File 'lib/open_ehr/rm/support/assumed_types.rb', line 33

def last
  @content.last
end