Class: PgGraphQl::Schema::Link
- Inherits:
-
Object
- Object
- PgGraphQl::Schema::Link
- Defined in:
- lib/pggraphql.rb
Instance Attribute Summary collapse
-
#filter ⇒ Object
Returns the value of attribute filter.
-
#fk ⇒ Object
Returns the value of attribute fk.
-
#name ⇒ Object
Returns the value of attribute name.
-
#order_by ⇒ Object
Returns the value of attribute order_by.
Instance Method Summary collapse
-
#initialize(owner, name, many) ⇒ Link
constructor
A new instance of Link.
- #many? ⇒ Boolean
- #type ⇒ Object
- #type=(_type) ⇒ Object
Constructor Details
#initialize(owner, name, many) ⇒ Link
Returns a new instance of Link.
116 117 118 119 120 121 |
# File 'lib/pggraphql.rb', line 116 def initialize(owner, name, many) @owner = owner @name = name @many = many @order_by = nil end |
Instance Attribute Details
#filter ⇒ Object
Returns the value of attribute filter.
115 116 117 |
# File 'lib/pggraphql.rb', line 115 def filter @filter end |
#fk ⇒ Object
Returns the value of attribute fk.
115 116 117 |
# File 'lib/pggraphql.rb', line 115 def fk @fk end |
#name ⇒ Object
Returns the value of attribute name.
115 116 117 |
# File 'lib/pggraphql.rb', line 115 def name @name end |
#order_by ⇒ Object
Returns the value of attribute order_by.
115 116 117 |
# File 'lib/pggraphql.rb', line 115 def order_by @order_by end |
Instance Method Details
#many? ⇒ Boolean
128 129 130 |
# File 'lib/pggraphql.rb', line 128 def many? !!@many end |
#type ⇒ Object
125 126 127 |
# File 'lib/pggraphql.rb', line 125 def type @owner.schema.types[@_type||@name.to_s.singularize.to_sym] end |
#type=(_type) ⇒ Object
122 123 124 |
# File 'lib/pggraphql.rb', line 122 def type=(_type) @_type = _type end |