Class: RestKat::ObjCSequence

Inherits:
Object
  • Object
show all
Defined in:
lib/rest_kat.rb

Direct Known Subclasses

ObjCSequenceOfMap, ObjCSequenceOfPrimitve

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(klass) ⇒ ObjCSequence

Returns a new instance of ObjCSequence.



140
141
142
# File 'lib/rest_kat.rb', line 140

def initialize klass
    self.item_class = klass
end

Instance Attribute Details

#item_classObject

Returns the value of attribute item_class.



130
131
132
# File 'lib/rest_kat.rb', line 130

def item_class
  @item_class
end

Instance Method Details

#cachedObject



132
133
134
# File 'lib/rest_kat.rb', line 132

def cached
  item_class.cached
end

#cached=(val) ⇒ Object



136
137
138
# File 'lib/rest_kat.rb', line 136

def cached=val
  item_class.cached = val
end

#json_typeObject



152
153
154
# File 'lib/rest_kat.rb', line 152

def json_type
    "seq"
end

#objc_classObject



156
157
158
# File 'lib/rest_kat.rb', line 156

def objc_class
    "NSArray *"
end

#objc_property_arg_decl(name) ⇒ Object



148
149
150
# File 'lib/rest_kat.rb', line 148

def objc_property_arg_decl name
    "#{name}: (NSArray *) #{name}"
end

#objc_property_decl(name) ⇒ Object



144
145
146
# File 'lib/rest_kat.rb', line 144

def objc_property_decl name
    "@property (nonatomic, strong) NSArray * #{name}"
end