Class: Cb::Requests::Application::Get

Inherits:
Base
  • Object
show all
Defined in:
lib/cb/requests/application/get.rb

Instance Attribute Summary

Attributes inherited from Base

#args

Instance Method Summary collapse

Methods inherited from Base

#body, #initialize, #query

Constructor Details

This class inherits a constructor from Cb::Requests::Base

Instance Method Details

#endpoint_uriObject



8
9
10
# File 'lib/cb/requests/application/get.rb', line 8

def endpoint_uri
  Cb.configuration.uri_application.sub ':did', @args[:did].to_s
end

#headersObject



16
17
18
19
20
21
22
# File 'lib/cb/requests/application/get.rb', line 16

def headers
  {
    'DeveloperKey' => Cb.configuration.dev_key,
    'HostSite' => Cb.configuration.host_site,
    'Content-Type' => 'application/json'
  }
end

#http_methodObject



12
13
14
# File 'lib/cb/requests/application/get.rb', line 12

def http_method
  :get
end