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