Class: Podium::Manifest

Inherits:
Object
  • Object
show all
Defined in:
lib/podium/manifest.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#assetsObject (readonly)

Returns the value of attribute assets.



3
4
5
# File 'lib/podium/manifest.rb', line 3

def assets
  @assets
end

#contentObject (readonly)

Returns the value of attribute content.



3
4
5
# File 'lib/podium/manifest.rb', line 3

def content
  @content
end

#cssObject (readonly)

Returns the value of attribute css.



3
4
5
# File 'lib/podium/manifest.rb', line 3

def css
  @css
end

#fallbackObject (readonly)

Returns the value of attribute fallback.



3
4
5
# File 'lib/podium/manifest.rb', line 3

def fallback
  @fallback
end

#jsObject (readonly)

Returns the value of attribute js.



3
4
5
# File 'lib/podium/manifest.rb', line 3

def js
  @js
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/podium/manifest.rb', line 3

def name
  @name
end

#proxyObject (readonly)

Returns the value of attribute proxy.



3
4
5
# File 'lib/podium/manifest.rb', line 3

def proxy
  @proxy
end

#versionObject (readonly)

Returns the value of attribute version.



3
4
5
# File 'lib/podium/manifest.rb', line 3

def version
  @version
end