Class: GraphitiGql::Loaders::FakeRecord

Inherits:
Struct
  • Object
show all
Defined in:
lib/graphiti_gql/loaders/belongs_to.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_resourceObject

Returns the value of attribute graphiti_resource

Returns:

  • (Object)

    the current value of graphiti_resource



3
4
5
# File 'lib/graphiti_gql/loaders/belongs_to.rb', line 3

def graphiti_resource
  @graphiti_resource
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



3
4
5
# File 'lib/graphiti_gql/loaders/belongs_to.rb', line 3

def id
  @id
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



3
4
5
# File 'lib/graphiti_gql/loaders/belongs_to.rb', line 3

def type
  @type
end