Class: RestKat::ObjCType
- Inherits:
-
Object
- Object
- RestKat::ObjCType
- Defined in:
- lib/rest_kat.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#cached ⇒ Object
Returns the value of attribute cached.
-
#json_type ⇒ Object
Returns the value of attribute json_type.
-
#node ⇒ Object
Returns the value of attribute node.
-
#objc_class ⇒ Object
Returns the value of attribute objc_class.
Instance Method Summary collapse
-
#initialize(objc_class, json_type, node) ⇒ ObjCType
constructor
A new instance of ObjCType.
- #objc_property_arg_decl(name) ⇒ Object
- #objc_property_decl(name) ⇒ Object
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
#cached ⇒ Object
Returns the value of attribute cached.
169 170 171 |
# File 'lib/rest_kat.rb', line 169 def cached @cached end |
#json_type ⇒ Object
Returns the value of attribute json_type.
167 168 169 |
# File 'lib/rest_kat.rb', line 167 def json_type @json_type end |
#node ⇒ Object
Returns the value of attribute node.
168 169 170 |
# File 'lib/rest_kat.rb', line 168 def node @node end |
#objc_class ⇒ Object
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 |