class Fastly::User

A representation of a User in Fastly

Attributes

customer_id[RW]

The id of the customer this user belongs to

id[RW]

The id of this user

login[RW]
name[RW]

The name of this user

password[RW]
role[RW]

The role this user has (one of admin, owner, superuser, user, engineer, billing)

Public Instance Methods

customer() click to toggle source

Get the Customer object this user belongs to

# File lib/fastly/user.rb, line 29
def customer
  @customer ||= fetcher.get(Customer, customer_id)
end
owner?() click to toggle source

Whether or not this User is the owner of the Customer they belong to

# File lib/fastly/user.rb, line 34
def owner?
  customer.owner_id == id
end