module Graphoid::Graphield

Attributes

graphields[R]

Public Class Methods

forbidden_fields() click to toggle source
# File lib/graphoid/graphield.rb, line 26
def forbidden_fields
  @forbidden
end
graphfiles() click to toggle source
# File lib/graphoid/graphield.rb, line 22
def graphfiles
  @graphields.select { |field| field.type == Graphoid::Upload }
end
graphield(name, type) click to toggle source
# File lib/graphoid/graphield.rb, line 12
def graphield(name, type)
  @graphields << Graphoid::Attribute.new(name: name.to_s, type: type)
end
graphorbid(field, *actions) click to toggle source
# File lib/graphoid/graphield.rb, line 16
def graphorbid(field, *actions)
  @forbidden[field] = actions
end