Class: Jason::Reflection::Base
- Inherits:
-
Object
- Object
- Jason::Reflection::Base
- Defined in:
- lib/jason/reflection/base.rb
Instance Attribute Summary collapse
-
#class_name ⇒ Object
Returns the value of attribute class_name.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(attrs = {}) ⇒ Base
Returns a new instance of Base.
9 10 11 12 13 |
# File 'lib/jason/reflection/base.rb', line 9 def initialize(attrs={}) attrs.each_pair do |key,value| self.send("#{key}=", value) end end |
Instance Attribute Details
#class_name ⇒ Object
Returns the value of attribute class_name.
7 8 9 |
# File 'lib/jason/reflection/base.rb', line 7 def class_name @class_name end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/jason/reflection/base.rb', line 7 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
7 8 9 |
# File 'lib/jason/reflection/base.rb', line 7 def type @type end |