Class: Algebrick::Serializers::AbstractToHash
- Inherits:
- Abstract show all
- Defined in:
- lib/algebrick/serializers/abstract_to_hash.rb,
lib/algebrick/serializers2/abstract_to_hash.rb
Direct Known Subclasses
Instance Attribute Summary (collapse)
-
- (Object) fields_key
readonly
Returns the value of attribute fields_key.
-
- (Object) type_key
readonly
Returns the value of attribute type_key.
Instance Method Summary (collapse)
-
- (AbstractToHash) initialize(type_key = :algebrick_type, fields_key = :algebrick_fields)
constructor
A new instance of AbstractToHash.
Methods inherited from Abstract
Methods included from TypeCheck
#Child!, #Child?, #Match!, #Match?, #Type!, #Type?, error
Constructor Details
- (AbstractToHash) initialize(type_key = :algebrick_type, fields_key = :algebrick_fields)
Returns a new instance of AbstractToHash
20 21 22 23 |
# File 'lib/algebrick/serializers/abstract_to_hash.rb', line 20 def initialize(type_key = :algebrick_type, fields_key = :algebrick_fields) @type_key = type_key @fields_key = fields_key end |
Instance Attribute Details
- (Object) fields_key (readonly)
Returns the value of attribute fields_key
18 19 20 |
# File 'lib/algebrick/serializers/abstract_to_hash.rb', line 18 def fields_key @fields_key end |
- (Object) type_key (readonly)
Returns the value of attribute type_key
18 19 20 |
# File 'lib/algebrick/serializers/abstract_to_hash.rb', line 18 def type_key @type_key end |