Class: Saklient::Cloud::Resources::IfaceActivitySample
- Inherits:
-
Object
- Object
- Saklient::Cloud::Resources::IfaceActivitySample
- Defined in:
- lib/saklient/cloud/resources/iface_activity_sample.rb
Instance Attribute Summary collapse
-
#at ⇒ NativeDate
readonly
記録日時.
-
#is_available ⇒ bool
readonly
有効な値のとき真.
-
#receive ⇒ Float
readonly
受信.
-
#send ⇒ Float
readonly
送信.
Instance Method Summary collapse
- #get_at ⇒ NativeDate
- #get_is_available ⇒ bool
- #get_receive ⇒ Float
- #get_send ⇒ Float
-
#initialize(atStr, data) ⇒ IfaceActivitySample
constructor
A new instance of IfaceActivitySample.
Constructor Details
#initialize(atStr, data) ⇒ IfaceActivitySample
Returns a new instance of IfaceActivitySample.
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
# File 'lib/saklient/cloud/resources/iface_activity_sample.rb', line 108 def initialize(atStr, data) Saklient::Util::validate_type(atStr, 'String') @_at = Saklient::Util::str2date(atStr) @_is_available = true v = nil v = data[:Send] if (v).nil? @_is_available = false else @_send = v end v = data[:Receive] if (v).nil? @_is_available = false else @_receive = v end end |
Instance Attribute Details
#at ⇒ NativeDate (readonly)
記録日時
31 32 33 |
# File 'lib/saklient/cloud/resources/iface_activity_sample.rb', line 31 def at @at end |
#is_available ⇒ bool (readonly)
有効な値のとき真
54 55 56 |
# File 'lib/saklient/cloud/resources/iface_activity_sample.rb', line 54 def is_available @is_available end |
#receive ⇒ Float (readonly)
100 101 102 |
# File 'lib/saklient/cloud/resources/iface_activity_sample.rb', line 100 def receive @receive end |
#send ⇒ Float (readonly)
77 78 79 |
# File 'lib/saklient/cloud/resources/iface_activity_sample.rb', line 77 def send @send end |
Instance Method Details
#get_at ⇒ NativeDate
24 25 26 |
# File 'lib/saklient/cloud/resources/iface_activity_sample.rb', line 24 def get_at return @_at end |
#get_is_available ⇒ bool
47 48 49 |
# File 'lib/saklient/cloud/resources/iface_activity_sample.rb', line 47 def get_is_available return @_is_available end |
#get_receive ⇒ Float
93 94 95 |
# File 'lib/saklient/cloud/resources/iface_activity_sample.rb', line 93 def get_receive return @_receive end |
#get_send ⇒ Float
70 71 72 |
# File 'lib/saklient/cloud/resources/iface_activity_sample.rb', line 70 def get_send return @_send end |