Class: Chozo::Config::Abstract Private
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Direct Known Subclasses
Instance Attribute Summary collapse
- #path ⇒ Object private
Instance Method Summary collapse
-
#initialize(path = nil, attributes = {}) ⇒ Abstract
constructor
private
A new instance of Abstract.
- #to_hash ⇒ Object private
Methods included from VariaModel
#_attributes_, #errors, #from_hash, #from_json, #get_attribute, included, #mass_assign, #set_attribute, #to_json, #valid?, #validate
Constructor Details
#initialize(path = nil, attributes = {}) ⇒ Abstract
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Abstract.
19 20 21 22 23 |
# File 'lib/chozo/config/abstract.rb', line 19 def initialize(path = nil, attributes = {}) @path = File.(path) if path mass_assign(attributes) end |
Instance Attribute Details
#path ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
11 12 13 |
# File 'lib/chozo/config/abstract.rb', line 11 def path @path end |
Instance Method Details
#to_hash ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
25 26 27 |
# File 'lib/chozo/config/abstract.rb', line 25 def to_hash super.to_hash.deep_symbolize_keys end |