Table of Contents - rails_to_swift-0.0.3 Documentation
Pages
- Constants.swift
- NSDate+Rails.swift
- model.swift
-
slimmodel.swift
- “// #{@class_name}.swift”
- “final class #{@class_name}: ResponseObjectSerializable, ResponseCollectionSerializable {”
- “var #{col.formatted_name}:#{col.formatted_type}?”
- “var #{col.formatted_name}:#{col.formatted_type}?”
- “self.#{col.formatted_name} = (representation.valueForKey(‘#{col.name}’) as? String) ?? ””
- “self.#{col.formatted_name} = (representation.valueForKey(‘#{col.name}’) as? Int) ?? -1”
- “self.#{col.formatted_name} = (representation.valueForKey(‘#{col.name}’) as? Float) ?? -1.0”
- “self.#{col.formatted_name} = NSDate.fromRails(representation.valueForKey(‘#{col.name}’) as? String ?? ”)”
- “assert(representation.valueForKey(‘#{col.name}’) != nil, ‘Expected #{col.name} to not be nil.’)”
- “class func collection(response response: NSHTTPURLResponse, representation: AnyObject) -> [#{@class_name}] {”
- rails_to_swift_tasks.rake
Classes and Modules
Methods
- ::bootstrap_rake — RailsToSwift
- ::classified_sort — SwiftModels
- ::create_model_file — SwiftModels
- ::create_model_files — SwiftModels
- ::eager_load — RailsToSwift
- ::fallback — RailsToSwift
- ::get_loaded_model — SwiftModels
- ::get_model_class — SwiftModels
- ::get_model_files — SwiftModels
- ::load_requires — RailsToSwift
- ::load_tasks — RailsToSwift
- ::loaded_tasks — RailsToSwift
- ::loaded_tasks= — RailsToSwift
- ::method_missing — ActiveRecord::Base
- ::model_dir — SwiftModels
- ::model_dir= — SwiftModels
- ::schema_default — SwiftModels
- ::true? — RailsToSwift
- #formatted_name — Column
- #formatted_name — SwiftColumn
- #formatted_type — Column
- #formatted_type — SwiftColumn