Class: GraphSQL::Mapping::Association
- Inherits:
-
Data
- Object
- Data
- GraphSQL::Mapping::Association
- Defined in:
- lib/graphsql/mapping.rb
Instance Attribute Summary collapse
-
#field_name ⇒ Object
readonly
Returns the value of attribute field_name.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#resolved_type ⇒ Object
type:may be a class or a-> { ... }proc (for forward references between mutually-associated types, e.g. Game <-> Organization).
Instance Attribute Details
#field_name ⇒ Object (readonly)
Returns the value of attribute field_name
5 6 7 |
# File 'lib/graphsql/mapping.rb', line 5 def field_name @field_name end |
#name ⇒ Object (readonly)
Returns the value of attribute name
5 6 7 |
# File 'lib/graphsql/mapping.rb', line 5 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type
5 6 7 |
# File 'lib/graphsql/mapping.rb', line 5 def type @type end |
Instance Method Details
#resolved_type ⇒ Object
type: may be a class or a -> { ... } proc (for forward references
between mutually-associated types, e.g. Game <-> Organization).
8 9 10 |
# File 'lib/graphsql/mapping.rb', line 8 def resolved_type type.respond_to?(:call) ? type.call : type end |