Class: Pact::Hal::NonJsonEntity
- Inherits:
-
Object
- Object
- Pact::Hal::NonJsonEntity
- Defined in:
- lib/pact/hal/non_json_entity.rb
Instance Method Summary collapse
- #assert_success! ⇒ Object
- #body ⇒ Object
-
#initialize(href, body, http_client, response = nil) ⇒ NonJsonEntity
constructor
A new instance of NonJsonEntity.
- #response ⇒ Object
- #success? ⇒ Boolean
Constructor Details
#initialize(href, body, http_client, response = nil) ⇒ NonJsonEntity
Returns a new instance of NonJsonEntity.
4 5 6 7 8 9 |
# File 'lib/pact/hal/non_json_entity.rb', line 4 def initialize(href, body, http_client, response = nil) @href = href @body = body @client = http_client @response = response end |
Instance Method Details
#assert_success! ⇒ Object
23 24 25 |
# File 'lib/pact/hal/non_json_entity.rb', line 23 def assert_success! self end |
#body ⇒ Object
19 20 21 |
# File 'lib/pact/hal/non_json_entity.rb', line 19 def body @body end |
#response ⇒ Object
15 16 17 |
# File 'lib/pact/hal/non_json_entity.rb', line 15 def response @response end |
#success? ⇒ Boolean
11 12 13 |
# File 'lib/pact/hal/non_json_entity.rb', line 11 def success? true end |