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
56
57
58
59
60
|
# File 'lib/matrix_sdk/response.rb', line 56
def method_missing(name, *args)
return fetch(name) if key?(name) && args.empty?
super
end
|
Instance Attribute Details
48
49
50
|
# File 'lib/matrix_sdk/response.rb', line 48
def api
@api
end
|
Instance Method Details
#respond_to_missing?(name, *_args) ⇒ Boolean
50
51
52
53
54
|
# File 'lib/matrix_sdk/response.rb', line 50
def respond_to_missing?(name, *_args)
return true if key? name
super
end
|