Class: HttpStub::Configurer::Request::StubResponseFile

Inherits:
Object
  • Object
show all
Defined in:
lib/http_stub/configurer/request/stub_response_file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ StubResponseFile

Returns a new instance of StubResponseFile.



9
10
11
12
13
14
# File 'lib/http_stub/configurer/request/stub_response_file.rb', line 9

def initialize(args)
  @id   = args[:id]
  @path = args[:path]
  @name = args[:name]
  @type = args[:type]
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



7
8
9
# File 'lib/http_stub/configurer/request/stub_response_file.rb', line 7

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



7
8
9
# File 'lib/http_stub/configurer/request/stub_response_file.rb', line 7

def name
  @name
end

#pathObject (readonly)

Returns the value of attribute path.



7
8
9
# File 'lib/http_stub/configurer/request/stub_response_file.rb', line 7

def path
  @path
end

#typeObject (readonly)

Returns the value of attribute type.



7
8
9
# File 'lib/http_stub/configurer/request/stub_response_file.rb', line 7

def type
  @type
end