Module: IesAuth::Rest
- Defined in:
- lib/ies_auth/rest/headers.rb,
lib/ies_auth/rest/options.rb,
lib/ies_auth/rest/request.rb
Overview
TLD
Defined Under Namespace
Modules: Request Classes: Headers, Options
Class Method Summary collapse
Class Method Details
.Headers(obj) ⇒ Object
73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/ies_auth/rest/headers.rb', line 73 def self.Headers(obj) if obj.is_a? Rest::Headers obj elsif obj.is_a? Hash Rest::Headers.new(**obj) elsif obj.is_a? Array Rest::Headers.new(**obj.to_h) else raise 'Invalid object type for Headers!' end end |
.Options(obj) ⇒ Object
136 137 138 139 140 141 142 143 144 145 146 |
# File 'lib/ies_auth/rest/options.rb', line 136 def self.Options(obj) if obj.is_a? Rest::Options obj elsif obj.is_a? Hash Rest::Options.new(**obj) elsif obj.is_a? Array Rest::Options.new(**obj.to_h) else raise 'Invalid object type for Options!' end end |