Class: JSONAPI::Consumer::ResultSet
- Inherits:
-
Array
- Object
- Array
- JSONAPI::Consumer::ResultSet
- Extended by:
- Forwardable
- Defined in:
- lib/jsonapi/consumer/result_set.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#implementation ⇒ Object
Returns the value of attribute implementation.
-
#included ⇒ Object
Returns the value of attribute included.
-
#links ⇒ Object
Returns the value of attribute links.
-
#meta ⇒ Object
Returns the value of attribute meta.
-
#pages ⇒ Object
Returns the value of attribute pages.
-
#record_class ⇒ Object
Returns the value of attribute record_class.
-
#relationships ⇒ Object
Returns the value of attribute relationships.
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors.
7 8 9 |
# File 'lib/jsonapi/consumer/result_set.rb', line 7 def errors @errors end |
#implementation ⇒ Object
Returns the value of attribute implementation.
7 8 9 |
# File 'lib/jsonapi/consumer/result_set.rb', line 7 def implementation @implementation end |
#included ⇒ Object
Returns the value of attribute included.
7 8 9 |
# File 'lib/jsonapi/consumer/result_set.rb', line 7 def included @included end |
#links ⇒ Object
Returns the value of attribute links.
7 8 9 |
# File 'lib/jsonapi/consumer/result_set.rb', line 7 def links @links end |
#meta ⇒ Object
Returns the value of attribute meta.
7 8 9 |
# File 'lib/jsonapi/consumer/result_set.rb', line 7 def @meta end |
#pages ⇒ Object
Returns the value of attribute pages.
7 8 9 |
# File 'lib/jsonapi/consumer/result_set.rb', line 7 def pages @pages end |
#record_class ⇒ Object
Returns the value of attribute record_class.
7 8 9 |
# File 'lib/jsonapi/consumer/result_set.rb', line 7 def record_class @record_class end |
#relationships ⇒ Object
Returns the value of attribute relationships.
7 8 9 |
# File 'lib/jsonapi/consumer/result_set.rb', line 7 def relationships @relationships end |
#uri ⇒ Object
Returns the value of attribute uri.
7 8 9 |
# File 'lib/jsonapi/consumer/result_set.rb', line 7 def uri @uri end |
Instance Method Details
#has_errors? ⇒ Boolean
20 21 22 |
# File 'lib/jsonapi/consumer/result_set.rb', line 20 def has_errors? errors.present? end |