Class: Uchi::Pagy::Console::Request
- Inherits:
-
Object
- Object
- Uchi::Pagy::Console::Request
- Defined in:
- lib/uchi/pagy/modules/console.rb
Instance Attribute Summary collapse
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#params ⇒ Object
Returns the value of attribute params.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
- #cookies ⇒ Object
-
#GET ⇒ Object
rubocop:disable Naming/MethodName.
-
#initialize ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize ⇒ Request
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_url ⇒ Object
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 |
#params ⇒ Object
Returns the value of attribute params.
8 9 10 |
# File 'lib/uchi/pagy/modules/console.rb', line 8 def params @params end |
#path ⇒ Object
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
#cookies ⇒ Object
18 |
# File 'lib/uchi/pagy/modules/console.rb', line 18 def = {} |
#GET ⇒ Object
rubocop:disable Naming/MethodName
16 |
# File 'lib/uchi/pagy/modules/console.rb', line 16 def GET = @params # rubocop:disable Naming/MethodName |