Exception: JSONAPI::Exceptions::InvalidLinksObject
- Defined in:
- lib/jsonapi/exceptions.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #errors ⇒ Object
-
#initialize(value) ⇒ InvalidLinksObject
constructor
A new instance of InvalidLinksObject.
Constructor Details
#initialize(value) ⇒ InvalidLinksObject
107 108 109 |
# File 'lib/jsonapi/exceptions.rb', line 107 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
106 107 108 |
# File 'lib/jsonapi/exceptions.rb', line 106 def value @value end |
Instance Method Details
#errors ⇒ Object
111 112 113 114 115 116 |
# File 'lib/jsonapi/exceptions.rb', line 111 def errors [JSONAPI::Error.new(code: JSONAPI::INVALID_LINKS_OBJECT, status: :bad_request, title: 'Invalid Links Object', detail: "#{value} is not a valid Links Object.")] end |