Class: Whisperer::Serializers::Base
- Inherits:
-
Object
- Object
- Whisperer::Serializers::Base
- Extended by:
- Helpers
- Defined in:
- lib/whisperer/serializers/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(obj, options: {}) ⇒ Base
constructor
A new instance of Base.
- #serialize ⇒ Object
Methods included from Helpers
Constructor Details
#initialize(obj, options: {}) ⇒ Base
Returns a new instance of Base.
14 15 16 17 |
# File 'lib/whisperer/serializers/base.rb', line 14 def initialize(obj, options: {}) @obj = obj @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
12 13 14 |
# File 'lib/whisperer/serializers/base.rb', line 12 def @options end |
Instance Method Details
#serialize ⇒ Object
19 20 21 |
# File 'lib/whisperer/serializers/base.rb', line 19 def serialize raise NotImplementedError end |