class SwiftColumn
Public Instance Methods
formatted_name()
click to toggle source
# File lib/rails_to_swift/swift_column.rb, line 2 def formatted_name return name.camelize(:lower) end
formatted_type()
click to toggle source
# File lib/rails_to_swift/swift_column.rb, line 5 def formatted_type case self.type when "integer" return "Int" when "float" return "Float" when "string" return "String" when "array" return "Array" when "text" return "String" when "datetime" return "NSDate" else return "" end end