Class: Placet::Relation

Inherits:
Struct
  • Object
show all
Defined in:
lib/placet/dsl.rb

Overview

relation は check(個体判定)と scope(一覧用の逆写像)を必ずペアで宣言する

Instance Attribute Summary collapse

Instance Attribute Details

#checkObject

Returns the value of attribute check

Returns:

  • (Object)

    the current value of check



32
33
34
# File 'lib/placet/dsl.rb', line 32

def check
  @check
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



32
33
34
# File 'lib/placet/dsl.rb', line 32

def name
  @name
end

#scopeObject

Returns the value of attribute scope

Returns:

  • (Object)

    the current value of scope



32
33
34
# File 'lib/placet/dsl.rb', line 32

def scope
  @scope
end