Class: Frame
- Inherits:
-
Object
- Object
- Frame
- Defined in:
- lib/ruby_astm/frame.rb
Instance Attribute Summary collapse
-
#astm_version ⇒ Object
Returns the value of attribute astm_version.
-
#machine_model ⇒ Object
Returns the value of attribute machine_model.
-
#records ⇒ Object
Returns the value of attribute records.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#astm_version ⇒ Object
Returns the value of attribute astm_version.
4 5 6 |
# File 'lib/ruby_astm/frame.rb', line 4 def astm_version @astm_version end |
#machine_model ⇒ Object
Returns the value of attribute machine_model.
3 4 5 |
# File 'lib/ruby_astm/frame.rb', line 3 def machine_model @machine_model end |
#records ⇒ Object
Returns the value of attribute records.
5 6 7 |
# File 'lib/ruby_astm/frame.rb', line 5 def records @records end |
Class Method Details
.is_end_frame?(line) ⇒ Boolean
21 22 23 |
# File 'lib/ruby_astm/frame.rb', line 21 def self.is_end_frame?(line) end |
.is_start_frame?(l) ⇒ Boolean
12 13 14 15 16 17 18 19 |
# File 'lib/ruby_astm/frame.rb', line 12 def self.is_start_frame?(l) line_without_control_char = l[1..-1] return line_without_control_char =~ /\d+H/ #k = l[0].bytes #if k.to_s == "[5]" # puts "ENQ" #end end |
Instance Method Details
#initalize(args) ⇒ Object
7 8 9 10 |
# File 'lib/ruby_astm/frame.rb', line 7 def initalize(args) self.records = [] super(args) end |