Class: Alula::Dcp::Meta
- Inherits:
-
Object
- Object
- Alula::Dcp::Meta
- Defined in:
- lib/alula/dcp/meta.rb
Overview
DCP Record Meta
Instance Attribute Summary collapse
-
#last_recv_nak_reason ⇒ Object
readonly
Returns the value of attribute last_recv_nak_reason.
-
#last_recv_result ⇒ Object
readonly
Returns the value of attribute last_recv_result.
-
#last_recv_time ⇒ Object
readonly
Returns the value of attribute last_recv_time.
-
#last_write_nak_reason ⇒ Object
readonly
Returns the value of attribute last_write_nak_reason.
-
#last_write_result ⇒ Object
readonly
Returns the value of attribute last_write_result.
-
#last_write_time ⇒ Object
readonly
Returns the value of attribute last_write_time.
-
#recv_needed ⇒ Object
readonly
Returns the value of attribute recv_needed.
Instance Method Summary collapse
-
#initialize(data) ⇒ Meta
constructor
A new instance of Meta.
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_reason ⇒ Object (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_result ⇒ Object (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_time ⇒ Object (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_reason ⇒ Object (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_result ⇒ Object (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_time ⇒ Object (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_needed ⇒ Object (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 |