Class: RestKat::ObjCSequence
- Inherits:
-
Object
- Object
- RestKat::ObjCSequence
show all
- Defined in:
- lib/rest_kat.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
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_class ⇒ Object
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
#cached ⇒ Object
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_type ⇒ Object
152
153
154
|
# File 'lib/rest_kat.rb', line 152
def json_type
"seq"
end
|
#objc_class ⇒ Object
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
|