Class: NgrokAPI::Models::EventSourceList
- Inherits:
-
Object
- Object
- NgrokAPI::Models::EventSourceList
- Defined in:
- lib/ngrokapi/models/event_source_list.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#sources ⇒ Object
readonly
Returns the value of attribute sources.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(client:, result:) ⇒ EventSourceList
constructor
A new instance of EventSourceList.
- #to_s ⇒ Object
Constructor Details
#initialize(client:, result:) ⇒ EventSourceList
Returns a new instance of EventSourceList.
11 12 13 14 15 16 |
# File 'lib/ngrokapi/models/event_source_list.rb', line 11 def initialize(client:, result:) @client = client @result = result @sources = @result['sources'] @uri = @result['uri'] end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
6 7 8 |
# File 'lib/ngrokapi/models/event_source_list.rb', line 6 def client @client end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
6 7 8 |
# File 'lib/ngrokapi/models/event_source_list.rb', line 6 def result @result end |
#sources ⇒ Object (readonly)
Returns the value of attribute sources.
6 7 8 |
# File 'lib/ngrokapi/models/event_source_list.rb', line 6 def sources @sources end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
6 7 8 |
# File 'lib/ngrokapi/models/event_source_list.rb', line 6 def uri @uri end |
Instance Method Details
#==(other) ⇒ Object
18 19 20 |
# File 'lib/ngrokapi/models/event_source_list.rb', line 18 def ==(other) @result == other.result end |
#to_s ⇒ Object
22 23 24 |
# File 'lib/ngrokapi/models/event_source_list.rb', line 22 def to_s @result.to_s end |