Class: Alula::Dcp::Meta

Inherits:
Object
  • Object
show all
Defined in:
lib/alula/dcp/meta.rb

Overview

DCP Record Meta

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Meta

Returns a new instance of Meta.



10
11
12
13
14
15
# File 'lib/alula/dcp/meta.rb', line 10

def initialize(data)
  data.each do |key, value|
    ruby_key = Util.underscore(key)
    instance_variable_set("@#{ruby_key}", value)
  end
end

Instance Attribute Details

#last_recv_nak_reasonObject (readonly)

Returns the value of attribute last_recv_nak_reason.



7
8
9
# File 'lib/alula/dcp/meta.rb', line 7

def last_recv_nak_reason
  @last_recv_nak_reason
end

#last_recv_resultObject (readonly)

Returns the value of attribute last_recv_result.



7
8
9
# File 'lib/alula/dcp/meta.rb', line 7

def last_recv_result
  @last_recv_result
end

#last_recv_timeObject (readonly)

Returns the value of attribute last_recv_time.



7
8
9
# File 'lib/alula/dcp/meta.rb', line 7

def last_recv_time
  @last_recv_time
end

#last_write_nak_reasonObject (readonly)

Returns the value of attribute last_write_nak_reason.



7
8
9
# File 'lib/alula/dcp/meta.rb', line 7

def last_write_nak_reason
  @last_write_nak_reason
end

#last_write_resultObject (readonly)

Returns the value of attribute last_write_result.



7
8
9
# File 'lib/alula/dcp/meta.rb', line 7

def last_write_result
  @last_write_result
end

#last_write_timeObject (readonly)

Returns the value of attribute last_write_time.



7
8
9
# File 'lib/alula/dcp/meta.rb', line 7

def last_write_time
  @last_write_time
end

#recv_neededObject (readonly)

Returns the value of attribute recv_needed.



7
8
9
# File 'lib/alula/dcp/meta.rb', line 7

def recv_needed
  @recv_needed
end