Class: Nem::Model::NetworkTime
- Inherits:
-
Object
- Object
- Nem::Model::NetworkTime
- Includes:
- Nem::Mixin::Assignable
- Defined in:
- lib/nem/model/network_time.rb
Instance Attribute Summary collapse
-
#receive_timestamp ⇒ Object
readonly
Returns the value of attribute receive_timestamp.
-
#send_timestamp ⇒ Object
readonly
Returns the value of attribute send_timestamp.
Class Method Summary collapse
Methods included from Nem::Mixin::Assignable
Instance Attribute Details
#receive_timestamp ⇒ Object (readonly)
Returns the value of attribute receive_timestamp.
6 7 8 |
# File 'lib/nem/model/network_time.rb', line 6 def @receive_timestamp end |
#send_timestamp ⇒ Object (readonly)
Returns the value of attribute send_timestamp.
6 7 8 |
# File 'lib/nem/model/network_time.rb', line 6 def @send_timestamp end |
Class Method Details
.new_from_network_time(hash) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/nem/model/network_time.rb', line 8 def self.new_from_network_time(hash) new( send_timestamp: hash[:sendTimeStamp], receive_timestamp: hash[:receiveTimeStamp] ) end |