Class: Fastly::Customer
Overview
A Customer account
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#owner_id ⇒ Object
Returns the value of attribute owner_id.
Attributes inherited from Base
Instance Method Summary collapse
-
#owner ⇒ Object
Return a user object representing the owner of this Customer.
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
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/fastly/customer.rb', line 4 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/fastly/customer.rb', line 4 def name @name end |
#owner_id ⇒ Object
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
#owner ⇒ Object
Return a user object representing the owner of this Customer
22 23 24 |
# File 'lib/fastly/customer.rb', line 22 def owner self.fetcher.get(User,self.owner_id) end |