Class: SuperclassBase
- Inherits:
-
BinData::Record
- Object
- BinData::Record
- SuperclassBase
show all
- Defined in:
- lib/helpers/superclass_base.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Instance Attribute Details
#type_str ⇒ Object
Returns the value of attribute type_str.
5
6
7
|
# File 'lib/helpers/superclass_base.rb', line 5
def type_str
@type_str
end
|
Instance Method Details
#body_length ⇒ Object
21
22
23
|
# File 'lib/helpers/superclass_base.rb', line 21
def body_length
0
end
|
#initialize_instance ⇒ Object
9
10
11
12
13
14
15
16
17
18
19
|
# File 'lib/helpers/superclass_base.rb', line 9
def initialize_instance
super
if self.class.name[2..7] == 'Action'
name = self.class.name[8..-1]
elsif self.class.name[2..14] == 'QueueProperty'
name = self.class.name[15..-1]
else
name = self.class.name[2..-1]
end
@type_str = name.gsub(/([A-Z])/, '_\1')[1..-1].downcase
end
|