Class: OutlookCalendar::RestCaller
- Inherits:
-
Object
- Object
- OutlookCalendar::RestCaller
- Defined in:
- lib/outlook_calendar/rest_caller.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(method, url, headers, params = {}) ⇒ RestCaller
constructor
A new instance of RestCaller.
Constructor Details
#initialize(method, url, headers, params = {}) ⇒ RestCaller
Returns a new instance of RestCaller.
5 6 7 8 9 10 |
# File 'lib/outlook_calendar/rest_caller.rb', line 5 def initialize(method, url, headers, params = {}) @method = method @url = url @headers = headers @params = params end |
Instance Attribute Details
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
3 4 5 |
# File 'lib/outlook_calendar/rest_caller.rb', line 3 def headers @headers end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
3 4 5 |
# File 'lib/outlook_calendar/rest_caller.rb', line 3 def method @method end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
3 4 5 |
# File 'lib/outlook_calendar/rest_caller.rb', line 3 def params @params end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
3 4 5 |
# File 'lib/outlook_calendar/rest_caller.rb', line 3 def url @url end |
Instance Method Details
#call ⇒ Object
12 13 14 |
# File 'lib/outlook_calendar/rest_caller.rb', line 12 def call parse_response end |