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.



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

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.



169
170
171
# File 'lib/rest_kat.rb', line 169

def cached
  @cached
end

#json_typeObject

Returns the value of attribute json_type.



167
168
169
# File 'lib/rest_kat.rb', line 167

def json_type
  @json_type
end

#nodeObject

Returns the value of attribute node.



168
169
170
# File 'lib/rest_kat.rb', line 168

def node
  @node
end

#objc_classObject

Returns the value of attribute objc_class.



166
167
168
# File 'lib/rest_kat.rb', line 166

def objc_class
  @objc_class
end

Instance Method Details

#objc_property_arg_decl(name) ⇒ Object



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

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

#objc_property_decl(name) ⇒ Object



171
172
173
# File 'lib/rest_kat.rb', line 171

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