Class: SCB::DB::Level
- Inherits:
-
Object
- Object
- SCB::DB::Level
- Defined in:
- lib/scb/db/level.rb
Instance Attribute Summary collapse
-
#api ⇒ Object
readonly
Returns the value of attribute api.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(name, text = nil, api = nil) ⇒ Level
constructor
A new instance of Level.
- #inspect ⇒ Object
- #levels(klass = Level) ⇒ Object
- #tables(klass = Table) ⇒ Object
Constructor Details
Instance Attribute Details
#api ⇒ Object (readonly)
Returns the value of attribute api.
8 9 10 |
# File 'lib/scb/db/level.rb', line 8 def api @api end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/scb/db/level.rb', line 8 def name @name end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
8 9 10 |
# File 'lib/scb/db/level.rb', line 8 def text @text end |
Instance Method Details
#inspect ⇒ Object
24 25 26 |
# File 'lib/scb/db/level.rb', line 24 def inspect name end |
#levels(klass = Level) ⇒ Object
16 17 18 |
# File 'lib/scb/db/level.rb', line 16 def levels(klass = Level) @levels ||= objects_for_type(klass, "l") end |
#tables(klass = Table) ⇒ Object
20 21 22 |
# File 'lib/scb/db/level.rb', line 20 def tables(klass = Table) @tables ||= objects_for_type(klass, "t") end |