Class: Swagger::Serializer::Store
- Inherits:
-
Object
- Object
- Swagger::Serializer::Store
- Defined in:
- lib/swagger/serializer/store.rb
Defined Under Namespace
Classes: Injectors
Instance Attribute Summary collapse
-
#deserialize_options ⇒ Object
readonly
Returns the value of attribute deserialize_options.
-
#serialize_options ⇒ Object
readonly
Returns the value of attribute serialize_options.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(serialize_options: nil, deserialize_options: nil) ⇒ Store
constructor
A new instance of Store.
Constructor Details
#initialize(serialize_options: nil, deserialize_options: nil) ⇒ Store
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/swagger/serializer/store.rb', line 12 def initialize(serialize_options: nil, deserialize_options: nil) = || {} = || {} [:inject_key] ||= "title" [:inject_key] ||= "title" [:injectors] ||= Injectors.new(cache: [:cache]) [:injectors] ||= Injectors.new(cache: [:cache]) end |
Instance Attribute Details
#deserialize_options ⇒ Object (readonly)
Returns the value of attribute deserialize_options.
10 11 12 |
# File 'lib/swagger/serializer/store.rb', line 10 def end |
#serialize_options ⇒ Object (readonly)
Returns the value of attribute serialize_options.
10 11 12 |
# File 'lib/swagger/serializer/store.rb', line 10 def end |
Class Method Details
.current ⇒ Object
5 6 7 |
# File 'lib/swagger/serializer/store.rb', line 5 def current @current ||= new end |