Class: JsonChecker::JSONToCheck

Inherits:
CheckableFile show all
Defined in:
lib/json_checker/json_to_check.rb

Instance Attribute Summary collapse

Attributes inherited from CheckableFile

#name, #path, #remotePath

Instance Method Summary collapse

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

#compareToObject (readonly)

Returns the value of attribute compareTo.



5
6
7
# File 'lib/json_checker/json_to_check.rb', line 5

def compareTo
  @compareTo
end

#keysObject (readonly)

Returns the value of attribute keys.



5
6
7
# File 'lib/json_checker/json_to_check.rb', line 5

def keys
  @keys
end