class FieldMapper::Types::Plat

Attributes

type[R]

Public Class Methods

[](type) click to toggle source
# File lib/field_mapper/types/plat.rb, line 13
def [](type)
  Plat.new(type)
end
new(type, values=[]) click to toggle source
# File lib/field_mapper/types/plat.rb, line 19
def initialize(type, values=[])
  if type.class != Class || !type.ancestors.include?(FieldMapper::Standard::Plat)
    raise InvalidPlatType.new("#{type} is not a valid plat type")
  end

  @type = type
end

Public Instance Methods

name() click to toggle source
# File lib/field_mapper/types/plat.rb, line 27
def name
  self.class.name
end