Class: Graphiti::Errors::NullRelation
- Extended by:
- ActiveModel::Naming
- Defined in:
- lib/graphiti/errors.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#id ⇒ Object
Returns the value of attribute id.
-
#pointer ⇒ Object
Returns the value of attribute pointer.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id, pointer) ⇒ NullRelation
constructor
A new instance of NullRelation.
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
#errors ⇒ Object
Returns the value of attribute errors.
18 19 20 |
# File 'lib/graphiti/errors.rb', line 18 def errors @errors end |
#id ⇒ Object
Returns the value of attribute id.
18 19 20 |
# File 'lib/graphiti/errors.rb', line 18 def id @id end |
#pointer ⇒ Object
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, = {}) attr end |