Class: Fastly::Customer

Inherits:
Base
  • Object
show all
Defined in:
lib/fastly/customer.rb

Overview

A Customer account

Instance Attribute Summary collapse

Attributes inherited from Base

#fetcher

Instance Method Summary collapse

Methods inherited from Base

#as_hash, #delete!, delete_path, get_path, #initialize, list_path, path, post_path, put_path, #require_api_key!, #save!

Constructor Details

This class inherits a constructor from Fastly::Base

Instance Attribute Details

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/fastly/customer.rb', line 4

def id
  @id
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/fastly/customer.rb', line 4

def name
  @name
end

#owner_idObject

Returns the value of attribute owner_id.



4
5
6
# File 'lib/fastly/customer.rb', line 4

def owner_id
  @owner_id
end

Instance Method Details

#ownerObject

Return a user object representing the owner of this Customer



22
23
24
# File 'lib/fastly/customer.rb', line 22

def owner
  fetcher.get(User, owner_id)
end