class Swagalicious::ExampleHelpers::MockResponse
Attributes
body[R]
headers[R]
status[R]
Public Class Methods
new(file_name)
click to toggle source
# File lib/swagalicious/example_helpers.rb, line 15 def initialize(file_name) @body = File.read(File.expand_path("#{File.join(ENV["MOCK_PATH"], file_name)}.json", __FILE__)) @status = 200 @headers = {} end