Sha256: fe23d62ec0106346ca6e897c08b69236f3c1679edff7e7325f436c4118de9205

Contents?: true

Size: 452 Bytes

Versions: 2

Compression:

Stored size: 452 Bytes

Contents

class Fastly
  # A Customer account
  class Customer < Base
    attr_accessor :id, :name, :owner_id

    ##
    # :attr: id
    #
    # The id of this customer

    ##
    # :attr: name
    #
    # The name of this customer

    ##
    # :attr: owner_id
    #
    # The id of the user that owns this customer

    # Return a user object representing the owner of this Customer
    def owner
      self.fetcher.get(User,self.owner_id)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fastly-1.1.4 lib/fastly/customer.rb
fastly-1.1.3 lib/fastly/customer.rb