Class: Jason::Reflection::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/jason/reflection/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject

Returns the value of attribute class_name.



7
8
9
# File 'lib/jason/reflection/base.rb', line 7

def class_name
  @class_name
end

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/jason/reflection/base.rb', line 7

def name
  @name
end

#typeObject

Returns the value of attribute type.



7
8
9
# File 'lib/jason/reflection/base.rb', line 7

def type
  @type
end