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
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = nil) ⇒ Store
constructor
A new instance of Store.
- #serializer_options ⇒ Object
Constructor Details
#initialize(options = nil) ⇒ Store
Returns a new instance of Store.
12 13 14 15 16 |
# File 'lib/swagger/serializer/store.rb', line 12 def initialize( = nil) = || {} [:inject_key] ||= "title" [:injectors] ||= Injectors.new(cache: [:cache]) end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute 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 |
Instance Method Details
#serializer_options ⇒ Object
18 19 20 |
# File 'lib/swagger/serializer/store.rb', line 18 def end |