Class: Podium::Manifest
- Inherits:
-
Object
- Object
- Podium::Manifest
- Defined in:
- lib/podium/manifest.rb
Instance Attribute Summary collapse
-
#assets ⇒ Object
readonly
Returns the value of attribute assets.
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#css ⇒ Object
readonly
Returns the value of attribute css.
-
#fallback ⇒ Object
readonly
Returns the value of attribute fallback.
-
#js ⇒ Object
readonly
Returns the value of attribute js.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#proxy ⇒ Object
readonly
Returns the value of attribute proxy.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(data) ⇒ Manifest
constructor
A new instance of Manifest.
Constructor Details
#initialize(data) ⇒ Manifest
Returns a new instance of Manifest.
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/podium/manifest.rb', line 5 def initialize(data) @name = data.fetch("name") @version = data.fetch("version") @content = data.fetch("content") @fallback = data.fetch("fallback") @assets = data.fetch("assets") @css = data.fetch("css") @js = data.fetch("js") @proxy = data.fetch("proxy") end |
Instance Attribute Details
#assets ⇒ Object (readonly)
Returns the value of attribute assets.
3 4 5 |
# File 'lib/podium/manifest.rb', line 3 def assets @assets end |
#content ⇒ Object (readonly)
Returns the value of attribute content.
3 4 5 |
# File 'lib/podium/manifest.rb', line 3 def content @content end |
#css ⇒ Object (readonly)
Returns the value of attribute css.
3 4 5 |
# File 'lib/podium/manifest.rb', line 3 def css @css end |
#fallback ⇒ Object (readonly)
Returns the value of attribute fallback.
3 4 5 |
# File 'lib/podium/manifest.rb', line 3 def fallback @fallback end |
#js ⇒ Object (readonly)
Returns the value of attribute js.
3 4 5 |
# File 'lib/podium/manifest.rb', line 3 def js @js end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/podium/manifest.rb', line 3 def name @name end |
#proxy ⇒ Object (readonly)
Returns the value of attribute proxy.
3 4 5 |
# File 'lib/podium/manifest.rb', line 3 def proxy @proxy end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
3 4 5 |
# File 'lib/podium/manifest.rb', line 3 def version @version end |