Sha256: ab05682458348ba14071f0221719604920f825528b2407210c1e8a7da9e96125
Contents?: true
Size: 780 Bytes
Versions: 5
Compression:
Stored size: 780 Bytes
Contents
// // <%= @name %>.h // // Created on <%= Time.now.strftime("%Y-%m-%d") %> // Copyright (c) <%= Time.now.strftime("%Y") %>. All rights reserved. // #import <Foundation/Foundation.h> <% for @property in @properties %> <% if @property.object? && !@property.array? %> @class <%= @property.name.capitalize %>; <% end %> <% end %> @interface <%= @name %> : NSObject <NSCoding, NSCopying> <% for @property in @properties %> @property (nonatomic, strong) <%= @property.type %> <%= @property.name %>; <% end %> + (<%= @name %> *)modelWithDictionary:(NSDictionary *)dict; + (<%= @name %> *)modelWithString:(NSString *)json; - (instancetype)initWithString:(NSString *)json; - (instancetype)initWithDictionary:(NSDictionary *)dict; - (NSDictionary *)dictionaryRepresentation; @end
Version data entries
5 entries across 5 versions & 2 rubygems