Class: Mailtrap::AccountAccess

Inherits:
Struct
  • Object
show all
Defined in:
lib/mailtrap/account_access.rb

Overview

Data Transfer Object for AccountAccess

Instance Attribute Summary collapse

Instance Attribute Details

#id ⇒ Integer (readonly)

The access ID

Returns:

  • (Integer) —

    the current value of id



12
13
14
# File 'lib/mailtrap/account_access.rb', line 12

def id
  @id
end

#permissions ⇒ Hash (readonly)

The permissions granted

Returns:

  • (Hash) —

    the current value of permissions



12
13
14
# File 'lib/mailtrap/account_access.rb', line 12

def permissions
  @permissions
end

#resources ⇒ Array<Hash> (readonly)

The resources this access applies to

Returns:

  • (Array<Hash>) —

    the current value of resources



12
13
14
# File 'lib/mailtrap/account_access.rb', line 12

def resources
  @resources
end

#specifier ⇒ Hash (readonly)

The specifier for the access

Returns:

  • (Hash) —

    the current value of specifier



12
13
14
# File 'lib/mailtrap/account_access.rb', line 12

def specifier
  @specifier
end

#specifier_type ⇒ String (readonly)

The type of the specifier

Returns:

  • (String) —

    the current value of specifier_type



12
13
14
# File 'lib/mailtrap/account_access.rb', line 12

def specifier_type
  @specifier_type
end