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.
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
#cached ⇒ Object
Returns the value of attribute cached.
177 178 179 |
# File 'lib/rest_kat.rb', line 177 def cached @cached end |
#json_type ⇒ Object
Returns the value of attribute json_type.
175 176 177 |
# File 'lib/rest_kat.rb', line 175 def json_type @json_type end |
#node ⇒ Object
Returns the value of attribute node.
176 177 178 |
# File 'lib/rest_kat.rb', line 176 def node @node end |
#objc_class ⇒ Object
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 |