Class: Camille::Rendered

Inherits:
Object
  • Object
show all
Defined in:
lib/camille/rendered.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fingerprintObject (readonly)

Returns the value of attribute fingerprint.



3
4
5
# File 'lib/camille/rendered.rb', line 3

def fingerprint
  @fingerprint
end

#jsonObject (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 options = nil
  @json
end