Class: Hypostasis::Namespace
- Inherits:
-
Object
- Object
- Hypostasis::Namespace
- Defined in:
- lib/hypostasis/namespace.rb
Instance Attribute Summary collapse
-
#data_model ⇒ Object
readonly
Returns the value of attribute data_model.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, data_model) ⇒ Namespace
constructor
A new instance of Namespace.
Constructor Details
#initialize(name, data_model) ⇒ Namespace
Returns a new instance of Namespace.
4 5 6 7 8 9 |
# File 'lib/hypostasis/namespace.rb', line 4 def initialize(name, data_model) @name = name.to_s @data_model = data_model.to_sym #self.setup end |
Instance Attribute Details
#data_model ⇒ Object (readonly)
Returns the value of attribute data_model.
2 3 4 |
# File 'lib/hypostasis/namespace.rb', line 2 def data_model @data_model end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
2 3 4 |
# File 'lib/hypostasis/namespace.rb', line 2 def name @name end |