Class: Lib::TL1::Huawei::Message::Response
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Lib::TL1::Huawei::Message::Response
- Defined in:
- lib/lib/tl1/huawei/message/response.rb
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args) ⇒ Object (private)
12 13 14 15 16 17 18 |
# File 'lib/lib/tl1/huawei/message/response.rb', line 12 def method_missing(method_name, *args) if to_h.key?(method_name.to_s.delete('_').downcase.to_sym) public_send method_name.to_s.delete('_').downcase.to_sym else super end end |