Class: AuthenticatedClient::Client
- Inherits:
-
Object
- Object
- AuthenticatedClient::Client
- Defined in:
- lib/authenticated_client/auth_client.rb
Instance Attribute Summary collapse
-
#auditing ⇒ Object
Returns the value of attribute auditing.
-
#body ⇒ Object
Returns the value of attribute body.
-
#parameters ⇒ Object
Returns the value of attribute parameters.
-
#token ⇒ Object
Returns the value of attribute token.
-
#url ⇒ Object
Returns the value of attribute url.
-
#verb ⇒ Object
Returns the value of attribute verb.
Instance Method Summary collapse
-
#initialize ⇒ Client
constructor
A new instance of Client.
- #request ⇒ Object
Constructor Details
#initialize ⇒ Client
Returns a new instance of Client.
13 14 15 16 17 18 19 20 |
# File 'lib/authenticated_client/auth_client.rb', line 13 def initialize @url = nil @token = nil @verb = :post @parameters = {} @body = {} @auditing = nil end |
Instance Attribute Details
#auditing ⇒ Object
Returns the value of attribute auditing.
11 12 13 |
# File 'lib/authenticated_client/auth_client.rb', line 11 def auditing @auditing end |
#body ⇒ Object
Returns the value of attribute body.
10 11 12 |
# File 'lib/authenticated_client/auth_client.rb', line 10 def body @body end |
#parameters ⇒ Object
Returns the value of attribute parameters.
9 10 11 |
# File 'lib/authenticated_client/auth_client.rb', line 9 def parameters @parameters end |
#token ⇒ Object
Returns the value of attribute token.
7 8 9 |
# File 'lib/authenticated_client/auth_client.rb', line 7 def token @token end |
#url ⇒ Object
Returns the value of attribute url.
6 7 8 |
# File 'lib/authenticated_client/auth_client.rb', line 6 def url @url end |
#verb ⇒ Object
Returns the value of attribute verb.
8 9 10 |
# File 'lib/authenticated_client/auth_client.rb', line 8 def verb @verb end |
Instance Method Details
#request ⇒ Object
22 23 24 25 |
# File 'lib/authenticated_client/auth_client.rb', line 22 def request validate_elements_before_performing_request perform_http_request end |