Class: Interfacets::Server::Assets::Serializer

Inherits:
Object
  • Object
show all
Defined in:
lib/interfacets/server/assets.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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