Sha256: 48f56f052204def115d57902d2758e678e53ecd15613e9cbdfc273efac5a46bb

Contents?: true

Size: 223 Bytes

Versions: 3

Compression:

Stored size: 223 Bytes

Contents

module Aptible
  class Api::Operation < Api::Resource
    belongs_to :resource

    def user
      auth = Aptible::Auth::User.new(token: token, headers: headers)
      auth.find_by_url(links['user'].href)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
aptible-api-0.4.0 lib/aptible/api/operation.rb
aptible-api-0.3.1 lib/aptible/api/operation.rb
aptible-api-0.3.0 lib/aptible/api/operation.rb