Module: OpenapiBlocks::Serializer
- Included in:
- Base
- Defined in:
- lib/openapi_blocks/serializer.rb
Overview
rubocop:disable Style/Documentation
Defined Under Namespace
Modules: ClassMethods
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
186 187 188 |
# File 'lib/openapi_blocks/serializer.rb', line 186 def object @object end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
186 187 188 |
# File 'lib/openapi_blocks/serializer.rb', line 186 def parent @parent end |
Class Method Details
.included(base) ⇒ Object
5 6 7 |
# File 'lib/openapi_blocks/serializer.rb', line 5 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#initialize(object, parent = nil) ⇒ Object
188 189 190 191 |
# File 'lib/openapi_blocks/serializer.rb', line 188 def initialize(object, parent = nil) @object = object @parent = parent end |