Class: Frame

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_astm/frame.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#astm_versionObject

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_modelObject

Returns the value of attribute machine_model.



3
4
5
# File 'lib/ruby_astm/frame.rb', line 3

def machine_model
  @machine_model
end

#recordsObject

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

Returns:

  • (Boolean)


21
22
23
# File 'lib/ruby_astm/frame.rb', line 21

def self.is_end_frame?(line)
	
end

.is_start_frame?(l) ⇒ Boolean

Returns:

  • (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