Class: AdequateSerialization::Options::Opts
- Inherits:
-
Object
- Object
- AdequateSerialization::Options::Opts
- Defined in:
- lib/adequate_serialization/options.rb
Instance Attribute Summary collapse
-
#attachments ⇒ Object
readonly
Returns the value of attribute attachments.
-
#includes ⇒ Object
readonly
Returns the value of attribute includes.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(includes: [], attach: {}, **options) ⇒ Opts
constructor
A new instance of Opts.
Constructor Details
#initialize(includes: [], attach: {}, **options) ⇒ Opts
Returns a new instance of Opts.
8 9 10 11 12 |
# File 'lib/adequate_serialization/options.rb', line 8 def initialize(includes: [], attach: {}, **) @includes = Array(includes) @attachments = attach @options = end |
Instance Attribute Details
#attachments ⇒ Object (readonly)
Returns the value of attribute attachments.
6 7 8 |
# File 'lib/adequate_serialization/options.rb', line 6 def @attachments end |
#includes ⇒ Object (readonly)
Returns the value of attribute includes.
6 7 8 |
# File 'lib/adequate_serialization/options.rb', line 6 def includes @includes end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/adequate_serialization/options.rb', line 6 def @options end |