Module: HttpApiBuilder::Dsl

Included in:
BaseClient
Defined in:
lib/http_api_builder/dsl.rb

Overview

Module for restful api dsl commands

Constant Summary collapse

VERBS =
%i(get head post put delete trace options connect) + # HTTP 1.1
%i(propfind proppatch mkcol copy move lock unlock) + # WebDAV
%i(orderpatch) + # WebDAV Ordered Collections protocol
%i(acl) + # WebDAV Access Control protocol
%i(patch) + # PATCH method for HTTP
%i(search)

Instance Method Summary collapse

Instance Method Details

#base_url(value = nil) ⇒ Object

Set the initial URL used by the gem



15
16
17
# File 'lib/http_api_builder/dsl.rb', line 15

def base_url(value = nil)
  value.nil? ? @base_url : (@base_url = value)
end