Class: Pact::Hal::NonJsonEntity

Inherits:
Object
  • Object
show all
Defined in:
lib/pact/hal/non_json_entity.rb

Instance Method Summary collapse

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

#bodyObject



19
20
21
# File 'lib/pact/hal/non_json_entity.rb', line 19

def body
  @body
end

#responseObject



15
16
17
# File 'lib/pact/hal/non_json_entity.rb', line 15

def response
  @response
end

#success?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/pact/hal/non_json_entity.rb', line 11

def success?
  true
end