Class: JsonModel::Builder::FormatBuilder::Factory
- Inherits:
-
Object
- Object
- JsonModel::Builder::FormatBuilder::Factory
- Defined in:
- lib/json_model/builder/format_builder.rb
Instance Attribute Summary collapse
-
#format ⇒ Object
readonly
Returns the value of attribute format.
Instance Method Summary collapse
-
#initialize(format) ⇒ Factory
constructor
A new instance of Factory.
- #new(type) ⇒ FormatBuilder
Constructor Details
#initialize(format) ⇒ Factory
Returns a new instance of Factory.
20 21 22 |
# File 'lib/json_model/builder/format_builder.rb', line 20 def initialize(format) @format = format end |
Instance Attribute Details
#format ⇒ Object (readonly)
Returns the value of attribute format.
17 18 19 |
# File 'lib/json_model/builder/format_builder.rb', line 17 def format @format end |
Instance Method Details
#new(type) ⇒ FormatBuilder
26 27 28 |
# File 'lib/json_model/builder/format_builder.rb', line 26 def new(type) FormatBuilder.new(type, format) end |