Sha256: 8a1cf16e77f34019d5c1be71bab5ffa1669432bb0ce825094214fdd29eee9e72

Contents?: true

Size: 456 Bytes

Versions: 12

Compression:

Stored size: 456 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

12 entries across 12 versions & 1 rubygems

Version Path
fastly-1.1.2 lib/fastly/customer.rb
fastly-1.1.1 lib/fastly/customer.rb
fastly-1.1.0 lib/fastly/customer.rb
fastly-1.01 lib/fastly/customer.rb
fastly-1.00 lib/fastly/customer.rb
fastly-0.99 lib/fastly/customer.rb
fastly-0.98 lib/fastly/customer.rb
fastly-0.97 lib/fastly/customer.rb
fastly-0.96 lib/fastly/customer.rb
fastly-0.95 lib/fastly/customer.rb
fastly-0.9 lib/fastly/customer.rb
fastly-0.5 lib/fastly/customer.rb