Sha256: db1c3f9e0bc406174c4c5c46c62d7688418d66b1417f5e8a9c9eea5e6e4107f2

Contents?: true

Size: 417 Bytes

Versions: 16

Compression:

Stored size: 417 Bytes

Contents

module Unit
  class CustomerToken < APIResource
    path '/customers'

    attribute :scope, Types::String
    attribute :verification_token, Types::String
    attribute :verification_code, Types::String
    attribute :expires_in, Types::Integer

    attribute :token, Types::String, readonly: true

    def self.resources_path(id)
      "#{super(id)}/token"
    end

    include ResourceOperations::Create
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
unit-ruby-0.10.0 lib/unit-ruby/customer_token.rb
unit-ruby-0.9.0 lib/unit-ruby/customer_token.rb
unit-ruby-0.8.1 lib/unit-ruby/customer_token.rb
unit-ruby-0.8.0 lib/unit-ruby/customer_token.rb
unit-ruby-0.7.0 lib/unit-ruby/customer_token.rb
unit-ruby-0.6.0 lib/unit-ruby/customer_token.rb
unit-ruby-0.5.0 lib/unit-ruby/customer_token.rb
unit-ruby-0.4.3 lib/unit-ruby/customer_token.rb
unit-ruby-0.4.2 lib/unit-ruby/customer_token.rb
unit-ruby-0.4.1 lib/unit-ruby/customer_token.rb
unit-ruby-0.4.0 lib/unit-ruby/customer_token.rb
unit-ruby-0.3.7 lib/unit-ruby/customer_token.rb
unit-ruby-0.2.7 lib/unit-ruby/customer_token.rb
unit-ruby-0.2.6 lib/unit-ruby/customer_token.rb
unit-ruby-0.2.5 lib/unit-ruby/customer_token.rb
unit-ruby-0.2.4 lib/unit-ruby/customer_token.rb