Class: Yourub::REST::Request
- Inherits:
-
Object
- Object
- Yourub::REST::Request
- Defined in:
- lib/yourub/rest/request.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(client, resource_type, method, params) ⇒ Youtube::Request
constructor
Once initializated, the Request object forward a request to youtube api, once the request is completed, the variables @status and @data are populated.
Constructor Details
#initialize(client, resource_type, method, params) ⇒ Youtube::Request
Once initializated, the Request object forward a request to youtube api, once the request is completed, the variables @status and @data are populated
18 19 20 21 22 23 24 |
# File 'lib/yourub/rest/request.rb', line 18 def initialize(client, resource_type, method, params) @client = client @resource_type = resource_type.to_sym @method = method.to_sym @params = params perform end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
4 5 6 |
# File 'lib/yourub/rest/request.rb', line 4 def data @data end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
4 5 6 |
# File 'lib/yourub/rest/request.rb', line 4 def status @status end |