Class: Pluct::Schema
- Inherits:
-
Object
- Object
- Pluct::Schema
- Includes:
- Helpers::Request
- Defined in:
- lib/pluct/schema.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.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(path) ⇒ Schema
constructor
A new instance of Schema.
- #links ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(path) ⇒ Schema
Returns a new instance of Schema.
7 8 9 |
# File 'lib/pluct/schema.rb', line 7 def initialize(path) @path = path end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
5 6 7 |
# File 'lib/pluct/schema.rb', line 5 def data @data end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
5 6 7 |
# File 'lib/pluct/schema.rb', line 5 def path @path end |
Class Method Details
Instance Method Details
#links ⇒ Object
15 16 17 |
# File 'lib/pluct/schema.rb', line 15 def links self.data["links"] end |
#to_s ⇒ Object
19 20 21 |
# File 'lib/pluct/schema.rb', line 19 def to_s @path end |