Module: MatrixSdk::Response::Extensions
- Defined in:
- lib/matrix_sdk/response.rb
Overview
Instance Attribute Summary collapse
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object
35
36
37
38
39
|
# File 'lib/matrix_sdk/response.rb', line 35
def method_missing(name, *args)
return fetch(name) if key?(name) && args.empty?
super
end
|
Instance Attribute Details
#api ⇒ Object
29
30
31
|
# File 'lib/matrix_sdk/response.rb', line 29
def api
@api
end
|
Instance Method Details
#respond_to_missing?(name, *_args) ⇒ Boolean
31
32
33
|
# File 'lib/matrix_sdk/response.rb', line 31
def respond_to_missing?(name, *_args)
key? name
end
|