class Rubytus::Info
Public Class Methods
new(args = {})
click to toggle source
# File lib/rubytus/info.rb, line 5 def initialize(args = {}) self['Offset'] = args[:offset] || 0 self['FinalLength'] = args[:final_length] || 0 self['Meta'] = args[:meta] || nil end
Public Instance Methods
final_length()
click to toggle source
# File lib/rubytus/info.rb, line 23 def final_length self['FinalLength'] end
final_length=(value)
click to toggle source
# File lib/rubytus/info.rb, line 19 def final_length=(value) self['FinalLength'] = value.to_i end
offset()
click to toggle source
# File lib/rubytus/info.rb, line 15 def offset self['Offset'] end
offset=(value)
click to toggle source
# File lib/rubytus/info.rb, line 11 def offset=(value) self['Offset'] = value.to_i end
remaining_length()
click to toggle source
# File lib/rubytus/info.rb, line 27 def remaining_length final_length - offset end