Class: IOSGen::Base::Property

Inherits:
Object
  • Object
show all
Defined in:
lib/ios_gen/base/property.rb

Overview

Object Property

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/ios_gen/base/property.rb', line 5

def name
  @name
end

#typeObject

Returns the value of attribute type.



5
6
7
# File 'lib/ios_gen/base/property.rb', line 5

def type
  @type
end