Class: Graphiti::Errors::NullRelation

Inherits:
Object
  • Object
show all
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.



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

def initialize(id, pointer)
  @id = id
  @pointer = pointer
  @errors = Graphiti::Util::SimpleErrors.new(self)
end

Instance Attribute Details

#errorsObject

Returns the value of attribute errors.



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

def errors
  @errors
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#pointerObject

Returns the value of attribute pointer.



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

def pointer
  @pointer
end

Class Method Details

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



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

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