Class: Ecfr::RequestRepresentation

Inherits:
Object
  • Object
show all
Defined in:
lib/ecfr/request_representation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path:, args:, options: {}) ⇒ RequestRepresentation

Returns a new instance of RequestRepresentation.



6
7
8
9
10
# File 'lib/ecfr/request_representation.rb', line 6

def initialize(path:, args:, options: {})
  @args = args
  @options = options
  @path = path
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



3
4
5
# File 'lib/ecfr/request_representation.rb', line 3

def args
  @args
end

#optionsObject (readonly)

Returns the value of attribute options.



3
4
5
# File 'lib/ecfr/request_representation.rb', line 3

def options
  @options
end

#pathObject (readonly)

Returns the value of attribute path.



3
4
5
# File 'lib/ecfr/request_representation.rb', line 3

def path
  @path
end

#responseObject

Returns the value of attribute response.



4
5
6
# File 'lib/ecfr/request_representation.rb', line 4

def response
  @response
end