Class: Interfacets::Server::Assets::Serializer
- Inherits:
-
Object
- Object
- Interfacets::Server::Assets::Serializer
- Defined in:
- lib/interfacets/server/assets.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#paths ⇒ Object
readonly
Returns the value of attribute paths.
Instance Method Summary collapse
- #as_json ⇒ Object
-
#initialize(paths:, file: File) ⇒ Serializer
constructor
A new instance of Serializer.
Constructor Details
#initialize(paths:, file: File) ⇒ Serializer
Returns a new instance of Serializer.
76 77 78 79 |
# File 'lib/interfacets/server/assets.rb', line 76 def initialize(paths:, file: File) @paths = paths @file = file end |
Instance Attribute Details
#file ⇒ Object (readonly)
Returns the value of attribute file.
75 76 77 |
# File 'lib/interfacets/server/assets.rb', line 75 def file @file end |
#paths ⇒ Object (readonly)
Returns the value of attribute paths.
75 76 77 |
# File 'lib/interfacets/server/assets.rb', line 75 def paths @paths end |
Instance Method Details
#as_json ⇒ Object
81 82 83 84 85 86 87 |
# File 'lib/interfacets/server/assets.rb', line 81 def as_json { fs_map:, const_map:, scaffolding:, } end |