Class: R4DigitalNZ::MetaData
- Inherits:
-
Object
- Object
- R4DigitalNZ::MetaData
- Includes:
- Enumerable
- Defined in:
- lib/r4digitalnz.rb
Instance Attribute Summary collapse
-
#objid ⇒ Object
readonly
Returns the value of attribute objid.
-
#profile ⇒ Object
readonly
Returns the value of attribute profile.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(hash) ⇒ MetaData
constructor
A new instance of MetaData.
- #section(section_id) ⇒ Object
Constructor Details
Instance Attribute Details
#objid ⇒ Object (readonly)
Returns the value of attribute objid.
137 138 139 |
# File 'lib/r4digitalnz.rb', line 137 def objid @objid end |
#profile ⇒ Object (readonly)
Returns the value of attribute profile.
138 139 140 |
# File 'lib/r4digitalnz.rb', line 138 def profile @profile end |
Instance Method Details
#each ⇒ Object
148 149 150 |
# File 'lib/r4digitalnz.rb', line 148 def each @sections.each {|s| yield s} end |
#section(section_id) ⇒ Object
152 153 154 |
# File 'lib/r4digitalnz.rb', line 152 def section section_id self.find {|s| s.id == section_id} end |