Class: Mailtrap::Project

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

Overview

Data Transfer Object for Project

Instance Attribute Summary collapse

Instance Attribute Details

#idInteger (readonly)

The project ID

Returns:

  • (Integer)

    the current value of id



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

def id
  @id
end

#inboxesArray<Mailtrap::Inbox> (readonly)

Array of inboxes

Returns:



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

def inboxes
  @inboxes
end

#nameString (readonly)

The project name

Returns:

  • (String)

    the current value of name



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

def name
  @name
end

#permissionsHash (readonly)

List of permissions

Returns:

  • (Hash)

    the current value of permissions



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

def permissions
  @permissions
end

Admin and viewer share links

Returns:

  • (Hash)

    the current value of share_links



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

def share_links
  @share_links
end