Sha256: 1ab345a7f13c860c8d171e59505994d3d66da95a33d0adc4de28363625e28145

Contents?: true

Size: 443 Bytes

Versions: 25

Compression:

Stored size: 443 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
      fetcher.get(User, owner_id)
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
fastly-2.0.0 lib/fastly/customer.rb
fastly-1.15.0 lib/fastly/customer.rb
fastly-1.14.0 lib/fastly/customer.rb
fastly-1.13.2 lib/fastly/customer.rb
fastly-1.13.1 lib/fastly/customer.rb
fastly-1.13.0 lib/fastly/customer.rb
fastly-1.12.0 lib/fastly/customer.rb
fastly-1.11.0 lib/fastly/customer.rb
fastly-1.10.0 lib/fastly/customer.rb
fastly-1.9.0 lib/fastly/customer.rb
fastly-1.8.0 lib/fastly/customer.rb
fastly-1.7.0 lib/fastly/customer.rb
fastly-1.6.1 lib/fastly/customer.rb
fastly-1.6.0 lib/fastly/customer.rb
fastly-1.5.0 lib/fastly/customer.rb
fastly-1.4.3 lib/fastly/customer.rb
fastly-1.4.2 lib/fastly/customer.rb
fastly-1.4.1 lib/fastly/customer.rb
fastly-1.4.0 lib/fastly/customer.rb
fastly-1.3.0 lib/fastly/customer.rb