Class: ForestAdminDatasourceToolkit::Schema::RelationSchema

Inherits:
Object
  • Object
show all
Defined in:
lib/forest_admin_datasource_toolkit/schema/relation_schema.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(foreign_collection, type) ⇒ RelationSchema

Returns a new instance of RelationSchema.



7
8
9
10
# File 'lib/forest_admin_datasource_toolkit/schema/relation_schema.rb', line 7

def initialize(foreign_collection, type)
  @foreign_collection = foreign_collection
  @type = type
end

Instance Attribute Details

#foreign_collectionObject

Returns the value of attribute foreign_collection.



4
5
6
# File 'lib/forest_admin_datasource_toolkit/schema/relation_schema.rb', line 4

def foreign_collection
  @foreign_collection
end

#typeObject (readonly)

Returns the value of attribute type.



5
6
7
# File 'lib/forest_admin_datasource_toolkit/schema/relation_schema.rb', line 5

def type
  @type
end