Class: Pluct::Resource
- Inherits:
-
Object
- Object
- Pluct::Resource
- Includes:
- Helpers::Request
- Defined in:
- lib/pluct/resource.rb
Constant Summary
Constants included from Helpers::Request
Helpers::Request::DEFAULT_HEADERS
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#schema ⇒ Object
readonly
Returns the value of attribute schema.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#get_data ⇒ Object
TODO: Authenticate the request if necessary.
-
#initialize(url, schema) ⇒ Resource
constructor
A new instance of Resource.
Constructor Details
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
5 6 7 |
# File 'lib/pluct/resource.rb', line 5 def data @data end |
#schema ⇒ Object (readonly)
Returns the value of attribute schema.
5 6 7 |
# File 'lib/pluct/resource.rb', line 5 def schema @schema end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
5 6 7 |
# File 'lib/pluct/resource.rb', line 5 def url @url end |
Instance Method Details
#get_data ⇒ Object
TODO: Authenticate the request if necessary.
15 16 17 |
# File 'lib/pluct/resource.rb', line 15 def get_data get @url end |