Class: IOSGen::Base::Property
- Inherits:
-
Object
- Object
- IOSGen::Base::Property
- Defined in:
- lib/ios_gen/base/property.rb
Overview
Object Property
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Property
constructor
A new instance of Property.
Constructor Details
#initialize(params = {}) ⇒ Property
Returns a new instance of Property.
7 8 9 10 |
# File 'lib/ios_gen/base/property.rb', line 7 def initialize(params = {}) @type = params[:type] @name = params[:name] end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/ios_gen/base/property.rb', line 5 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
5 6 7 |
# File 'lib/ios_gen/base/property.rb', line 5 def type @type end |