Class: Uchi::Pagy::Console::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/uchi/pagy/modules/console.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRequest

Returns a new instance of Request.



10
11
12
13
14
# File 'lib/uchi/pagy/modules/console.rb', line 10

def initialize
  @base_url = 'http://www.example.com'
  @path     = '/path'
  @params   = { example: '123' }
end

Instance Attribute Details

#base_urlObject

Returns the value of attribute base_url.



8
9
10
# File 'lib/uchi/pagy/modules/console.rb', line 8

def base_url
  @base_url
end

#paramsObject

Returns the value of attribute params.



8
9
10
# File 'lib/uchi/pagy/modules/console.rb', line 8

def params
  @params
end

#pathObject

Returns the value of attribute path.



8
9
10
# File 'lib/uchi/pagy/modules/console.rb', line 8

def path
  @path
end

Instance Method Details

#cookiesObject



18
# File 'lib/uchi/pagy/modules/console.rb', line 18

def cookies = {}

#GETObject

rubocop:disable Naming/MethodName



16
# File 'lib/uchi/pagy/modules/console.rb', line 16

def GET = @params  # rubocop:disable Naming/MethodName