Class: Graphiti::Errors::NullRelation

Inherits:
Object
  • Object
show all
Extended by:
ActiveModel::Naming
Defined in:
lib/graphiti/errors.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, pointer) ⇒ NullRelation

Returns a new instance of NullRelation.



20
21
22
23
24
# File 'lib/graphiti/errors.rb', line 20

def initialize(id, pointer)
  @id = id
  @pointer = pointer
  @errors = ActiveModel::Errors.new(self)
end

Instance Attribute Details

#errorsObject

Returns the value of attribute errors.



18
19
20
# File 'lib/graphiti/errors.rb', line 18

def errors
  @errors
end

#idObject

Returns the value of attribute id.



18
19
20
# File 'lib/graphiti/errors.rb', line 18

def id
  @id
end

#pointerObject

Returns the value of attribute pointer.



18
19
20
# File 'lib/graphiti/errors.rb', line 18

def pointer
  @pointer
end

Class Method Details

.human_attribute_name(attr, options = {}) ⇒ Object



26
27
28
# File 'lib/graphiti/errors.rb', line 26

def self.human_attribute_name(attr, options = {})
  attr
end