Class: AliyunIot::Result
- Inherits:
-
Object
- Object
- AliyunIot::Result
- Defined in:
- lib/aliyun_iot/result.rb
Instance Attribute Summary collapse
-
#h ⇒ Object
readonly
Returns the value of attribute h.
-
#queue ⇒ Object
readonly
Returns the value of attribute queue.
Instance Method Summary collapse
- #get_message ⇒ Object
-
#initialize(queue, content, *path) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(queue, content, *path) ⇒ Result
Returns a new instance of Result.
6 7 8 9 |
# File 'lib/aliyun_iot/result.rb', line 6 def initialize(queue, content, *path) @queue = queue @h = path.blank? ? Hash.xml_object(content, "Message") : Hash.xml_array(content, *path) end |
Instance Attribute Details
#h ⇒ Object (readonly)
Returns the value of attribute h.
4 5 6 |
# File 'lib/aliyun_iot/result.rb', line 4 def h @h end |
#queue ⇒ Object (readonly)
Returns the value of attribute queue.
4 5 6 |
# File 'lib/aliyun_iot/result.rb', line 4 def queue @queue end |