Class: JsonChecker::JSONToCheck
- Inherits:
-
CheckableFile
- Object
- CheckableFile
- JsonChecker::JSONToCheck
- Defined in:
- lib/json_checker/json_to_check.rb
Instance Attribute Summary collapse
-
#compareTo ⇒ Object
readonly
Returns the value of attribute compareTo.
-
#keys ⇒ Object
readonly
Returns the value of attribute keys.
Attributes inherited from CheckableFile
Instance Method Summary collapse
-
#initialize(representation) ⇒ JSONToCheck
constructor
A new instance of JSONToCheck.
Methods inherited from CheckableFile
#get_content, is_valid_representation?
Constructor Details
#initialize(representation) ⇒ JSONToCheck
Returns a new instance of JSONToCheck.
7 8 9 10 11 |
# File 'lib/json_checker/json_to_check.rb', line 7 def initialize(representation) super(representation) @keys = representation['keys'] @compareTo = representation['compare-to'] end |
Instance Attribute Details
#compareTo ⇒ Object (readonly)
Returns the value of attribute compareTo.
5 6 7 |
# File 'lib/json_checker/json_to_check.rb', line 5 def compareTo @compareTo end |
#keys ⇒ Object (readonly)
Returns the value of attribute keys.
5 6 7 |
# File 'lib/json_checker/json_to_check.rb', line 5 def keys @keys end |