Class: JsonApiClient::ResultSet

Inherits:
Array
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/json_api_client/result_set.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorsObject

Returns the value of attribute errors


7
8
9
# File 'lib/json_api_client/result_set.rb', line 7

def errors
  @errors
end

#implementationObject

Returns the value of attribute implementation


7
8
9
# File 'lib/json_api_client/result_set.rb', line 7

def implementation
  @implementation
end

#includedObject

Returns the value of attribute included


7
8
9
# File 'lib/json_api_client/result_set.rb', line 7

def included
  @included
end

Returns the value of attribute links


7
8
9
# File 'lib/json_api_client/result_set.rb', line 7

def links
  @links
end

#metaObject

Returns the value of attribute meta


7
8
9
# File 'lib/json_api_client/result_set.rb', line 7

def meta
  @meta
end

#pagesObject

Returns the value of attribute pages


7
8
9
# File 'lib/json_api_client/result_set.rb', line 7

def pages
  @pages
end

#record_classObject

Returns the value of attribute record_class


7
8
9
# File 'lib/json_api_client/result_set.rb', line 7

def record_class
  @record_class
end

#relationshipsObject

Returns the value of attribute relationships


7
8
9
# File 'lib/json_api_client/result_set.rb', line 7

def relationships
  @relationships
end

#uriObject

Returns the value of attribute uri


7
8
9
# File 'lib/json_api_client/result_set.rb', line 7

def uri
  @uri
end

Instance Method Details

#has_errors?Boolean

Returns:

  • (Boolean)

20
21
22
# File 'lib/json_api_client/result_set.rb', line 20

def has_errors?
  errors.present?
end