Class: Kangaru::RequestBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/kangaru/request_builder.rb

Constant Summary collapse

ARGUMENT_TOKEN =
/^--?/

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tokens) ⇒ RequestBuilder

Returns a new instance of RequestBuilder.



7
8
9
# File 'lib/kangaru/request_builder.rb', line 7

def initialize(tokens)
  @tokens = tokens
end

Instance Attribute Details

#tokensObject (readonly)

Returns the value of attribute tokens.



5
6
7
# File 'lib/kangaru/request_builder.rb', line 5

def tokens
  @tokens
end

Instance Method Details

#buildObject



11
12
13
# File 'lib/kangaru/request_builder.rb', line 11

def build
  Request.new(path:, params:)
end