Class: NgrokAPI::Models::AWSRole

Inherits:
Object
  • Object
show all
Defined in:
lib/ngrokapi/models/aws_role.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#clientObject (readonly)

Returns the value of attribute client.



6
7
8
# File 'lib/ngrokapi/models/aws_role.rb', line 6

def client
  @client
end

#resultObject (readonly)

Returns the value of attribute result.



6
7
8
# File 'lib/ngrokapi/models/aws_role.rb', line 6

def result
  @result
end

#role_arnObject (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_sObject



20
21
22
# File 'lib/ngrokapi/models/aws_role.rb', line 20

def to_s
  @result.to_s
end