Class: OpenStax::Cnx::V1::Element
- Inherits:
-
Object
- Object
- OpenStax::Cnx::V1::Element
- Defined in:
- lib/openstax/cnx/v1/element.rb
Instance Attribute Summary collapse
-
#node ⇒ Object
readonly
Returns the value of attribute node.
Instance Method Summary collapse
-
#initialize(node:) ⇒ Element
constructor
A new instance of Element.
Constructor Details
#initialize(node:) ⇒ Element
Returns a new instance of Element.
5 6 7 |
# File 'lib/openstax/cnx/v1/element.rb', line 5 def initialize(node:) @node = node end |
Instance Attribute Details
#node ⇒ Object (readonly)
Returns the value of attribute node.
3 4 5 |
# File 'lib/openstax/cnx/v1/element.rb', line 3 def node @node end |