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-1.2.3 lib/fastly/customer.rb
fastly-1.2.2 lib/fastly/customer.rb
fastly-1.2.1 lib/fastly/customer.rb
fastly-1.2.0 lib/fastly/customer.rb
fastly-1.1.5 lib/fastly/customer.rb