Class: GraphitiGql::Loaders::FakeRecord
- Inherits:
-
Struct
- Object
- Struct
- GraphitiGql::Loaders::FakeRecord
- Defined in:
- lib/graphiti_gql/loaders/belongs_to.rb
Instance Attribute Summary collapse
-
#graphiti_resource ⇒ Object
Returns the value of attribute graphiti_resource.
-
#id ⇒ Object
Returns the value of attribute id.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(*args) ⇒ FakeRecord
constructor
A new instance of FakeRecord.
Constructor Details
#initialize(*args) ⇒ FakeRecord
Returns a new instance of FakeRecord.
4 5 6 7 |
# File 'lib/graphiti_gql/loaders/belongs_to.rb', line 4 def initialize(*args) super @__graphiti_resource = graphiti_resource end |
Instance Attribute Details
#graphiti_resource ⇒ Object
Returns the value of attribute graphiti_resource
3 4 5 |
# File 'lib/graphiti_gql/loaders/belongs_to.rb', line 3 def graphiti_resource @graphiti_resource end |
#id ⇒ Object
Returns the value of attribute id
3 4 5 |
# File 'lib/graphiti_gql/loaders/belongs_to.rb', line 3 def id @id end |
#type ⇒ Object
Returns the value of attribute type
3 4 5 |
# File 'lib/graphiti_gql/loaders/belongs_to.rb', line 3 def type @type end |