class Fastly::Customer

A Customer account

Attributes

billing_contact_id[RW]

The id of the user to be contacted for billing issues.

id[RW]

The id of this customer

name[RW]

The name of this customer

owner_id[RW]

The id of the user that owns this customer

security_contact_id[RW]

The id of the user to be contacted for security issues.

technical_contact_id[RW]

The id of the user to be contacted for technical issues.

Public Instance Methods

billing_contact() click to toggle source

The billing contact as a Fastly::User

# File lib/fastly/customer.rb, line 44
def billing_contact
  get_user billing_contact_id
end
owner() click to toggle source

The account owner as a Fastly::User

# File lib/fastly/customer.rb, line 56
def owner
  get_user owner_id
end
security_contact() click to toggle source

The security contact as a Fastly::User

# File lib/fastly/customer.rb, line 62
def security_contact
  get_user security_contact_id
end
technical_contact() click to toggle source

The technical contact as a Fastly::User

# File lib/fastly/customer.rb, line 68
def technical_contact
  get_user technical_contact_id
end

Private Instance Methods

get_user(id) click to toggle source
# File lib/fastly/customer.rb, line 74
def get_user(id)
  id ? fetcher.get(User, id) : nil
end