Class: LucidHttp::Client
- Inherits:
-
Object
- Object
- LucidHttp::Client
- Defined in:
- lib/lucid_http.rb
Instance Attribute Summary collapse
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
Instance Method Summary collapse
- #do_verb(verb:, path:, formatter:, follower:, form:) ⇒ Object
-
#initialize(base_url:) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(base_url:) ⇒ Client
Returns a new instance of Client.
11 12 13 |
# File 'lib/lucid_http.rb', line 11 def initialize(base_url:) @base_url = base_url end |
Instance Attribute Details
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
9 10 11 |
# File 'lib/lucid_http.rb', line 9 def base_url @base_url end |
Instance Method Details
#do_verb(verb:, path:, formatter:, follower:, form:) ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/lucid_http.rb', line 25 def do_verb(verb:, path:, formatter:, follower:, form:) LucidHttp::Response.new( base_url: base_url, path: path, verb: verb, formatter: formatter, follower: follower, form: form, ) end |