Class: RootLevel

Inherits:
Struct
  • Object
show all
Defined in:
lib/generators/graphql/templates/models/root_level.rb

Constant Summary collapse

STATIC =
new(id: 'root').freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



1
2
3
# File 'lib/generators/graphql/templates/models/root_level.rb', line 1

def id
  @id
end

Class Method Details

.find(_) ⇒ Object



4
5
6
# File 'lib/generators/graphql/templates/models/root_level.rb', line 4

def self.find(_)
  STATIC
end