Class: JsonResponseMatchers::Base
- Inherits:
-
Object
- Object
- JsonResponseMatchers::Base
- Includes:
- RSpec::Matchers::Composable
- Defined in:
- lib/json_response_matchers/base.rb
Instance Attribute Summary collapse
-
#actual ⇒ Object
readonly
Returns the value of attribute actual.
-
#expected ⇒ Object
readonly
Returns the value of attribute expected.
Instance Method Summary collapse
- #at_key(*hash_keys) ⇒ Object
- #diffable? ⇒ Boolean
-
#initialize(expected) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(expected) ⇒ Base
Returns a new instance of Base.
11 12 13 |
# File 'lib/json_response_matchers/base.rb', line 11 def initialize expected @expected = expected end |
Instance Attribute Details
#actual ⇒ Object (readonly)
Returns the value of attribute actual.
7 8 9 |
# File 'lib/json_response_matchers/base.rb', line 7 def actual @actual end |
#expected ⇒ Object (readonly)
Returns the value of attribute expected.
7 8 9 |
# File 'lib/json_response_matchers/base.rb', line 7 def expected @expected end |
Instance Method Details
#at_key(*hash_keys) ⇒ Object
15 16 17 18 |
# File 'lib/json_response_matchers/base.rb', line 15 def at_key *hash_keys @keys = hash_keys self end |
#diffable? ⇒ Boolean
20 21 22 |
# File 'lib/json_response_matchers/base.rb', line 20 def diffable? true end |