Class: Nucleo::Models::CheckJS
- Inherits:
-
Object
- Object
- Nucleo::Models::CheckJS
- Defined in:
- lib/nucleo/models/check_js.rb
Class Method Summary collapse
Instance Method Summary collapse
- #body? ⇒ Boolean
- #head? ⇒ Boolean
-
#initialize(attributes = {}) ⇒ Nucleo::Models::SiteFeed
constructor
Returns an instanc eof the Site Feed domain model.
- #installed? ⇒ Boolean
- #installed_correctly? ⇒ Boolean
- #other? ⇒ Boolean
Constructor Details
#initialize(attributes = {}) ⇒ Nucleo::Models::SiteFeed
Returns an instanc eof the Site Feed domain model
10 11 12 |
# File 'lib/nucleo/models/check_js.rb', line 10 def initialize(attributes={}) @attributes = attributes end |
Class Method Details
Instance Method Details
#body? ⇒ Boolean
20 21 22 |
# File 'lib/nucleo/models/check_js.rb', line 20 def body? @attributes.fetch("body") end |
#head? ⇒ Boolean
24 25 26 |
# File 'lib/nucleo/models/check_js.rb', line 24 def head? @attributes.fetch("head") end |
#installed? ⇒ Boolean
32 33 34 |
# File 'lib/nucleo/models/check_js.rb', line 32 def installed? @attributes.fetch("installed") end |
#installed_correctly? ⇒ Boolean
36 37 38 |
# File 'lib/nucleo/models/check_js.rb', line 36 def installed_correctly? self.head? and not (self.body? or self.other?) end |
#other? ⇒ Boolean
28 29 30 |
# File 'lib/nucleo/models/check_js.rb', line 28 def other? @attributes.fetch("other") end |