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.
-
#links ⇒ Object
readonly
Returns the value of attribute links.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path) ⇒ Schema
constructor
A new instance of Schema.
- #to_s ⇒ Object
Constructor Details
#initialize(path) ⇒ Schema
Returns a new instance of Schema.
7 8 9 10 11 |
# File 'lib/pluct/schema.rb', line 7 def initialize(path) @path = path @data = get_content @links = @data.links 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 |
#links ⇒ Object (readonly)
Returns the value of attribute links.
5 6 7 |
# File 'lib/pluct/schema.rb', line 5 def links @links end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
5 6 7 |
# File 'lib/pluct/schema.rb', line 5 def path @path end |
Instance Method Details
#to_s ⇒ Object
13 14 15 |
# File 'lib/pluct/schema.rb', line 13 def to_s @path end |