Class: Caliper::Request::Envelope
- Inherits:
-
Object
- Object
- Caliper::Request::Envelope
- Includes:
- Jsonable
- Defined in:
- lib/caliper/request/envelope.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#sendTime ⇒ Object
Returns the value of attribute sendTime.
-
#sensor ⇒ Object
Returns the value of attribute sensor.
Instance Method Summary collapse
-
#initialize ⇒ Envelope
constructor
A new instance of Envelope.
Methods included from Jsonable
#eql?, #from_json, included, #to_json
Constructor Details
#initialize ⇒ Envelope
Returns a new instance of Envelope.
31 32 33 34 35 |
# File 'lib/caliper/request/envelope.rb', line 31 def initialize @sensor = '' @sendTime = Time.now.utc.iso8601(3) @data = [] end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
29 30 31 |
# File 'lib/caliper/request/envelope.rb', line 29 def data @data end |
#sendTime ⇒ Object
Returns the value of attribute sendTime.
29 30 31 |
# File 'lib/caliper/request/envelope.rb', line 29 def sendTime @sendTime end |
#sensor ⇒ Object
Returns the value of attribute sensor.
29 30 31 |
# File 'lib/caliper/request/envelope.rb', line 29 def sensor @sensor end |