Class: Camille::Rendered
- Inherits:
-
Object
- Object
- Camille::Rendered
- Defined in:
- lib/camille/rendered.rb
Instance Attribute Summary collapse
-
#fingerprint ⇒ Object
readonly
Returns the value of attribute fingerprint.
-
#json ⇒ Object
readonly
Returns the value of attribute json.
Instance Method Summary collapse
-
#initialize(fingerprint, json) ⇒ Rendered
constructor
A new instance of Rendered.
- #to_json(options = nil) ⇒ Object
Constructor Details
#initialize(fingerprint, json) ⇒ Rendered
5 6 7 8 |
# File 'lib/camille/rendered.rb', line 5 def initialize fingerprint, json @fingerprint = fingerprint @json = json end |
Instance Attribute Details
#fingerprint ⇒ Object (readonly)
Returns the value of attribute fingerprint.
3 4 5 |
# File 'lib/camille/rendered.rb', line 3 def fingerprint @fingerprint end |
#json ⇒ Object (readonly)
Returns the value of attribute json.
3 4 5 |
# File 'lib/camille/rendered.rb', line 3 def json @json end |
Instance Method Details
#to_json(options = nil) ⇒ Object
10 11 12 |
# File 'lib/camille/rendered.rb', line 10 def to_json = nil @json end |