Class: RestKat::ObjCType

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

Direct Known Subclasses

ObjCMapType, ObjCPrimitiveType

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(objc_class, json_type, node) ⇒ ObjCType

Returns a new instance of ObjCType.



187
188
189
190
191
# File 'lib/rest_kat.rb', line 187

def initialize objc_class, json_type, node
    self.objc_class = objc_class
    self.json_type = json_type
    self.node = node
end

Instance Attribute Details

#cachedObject

Returns the value of attribute cached.



177
178
179
# File 'lib/rest_kat.rb', line 177

def cached
  @cached
end

#json_typeObject

Returns the value of attribute json_type.



175
176
177
# File 'lib/rest_kat.rb', line 175

def json_type
  @json_type
end

#nodeObject

Returns the value of attribute node.



176
177
178
# File 'lib/rest_kat.rb', line 176

def node
  @node
end

#objc_classObject

Returns the value of attribute objc_class.



174
175
176
# File 'lib/rest_kat.rb', line 174

def objc_class
  @objc_class
end

Instance Method Details

#objc_property_arg_decl(name) ⇒ Object



183
184
185
# File 'lib/rest_kat.rb', line 183

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

#objc_property_decl(name) ⇒ Object



179
180
181
# File 'lib/rest_kat.rb', line 179

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