Sha256: 95a39faa3912c3d21ec62d8f942e67c4a7a04f38603eca833a6c64d9c9e83dc0

Contents?: true

Size: 558 Bytes

Versions: 53

Compression:

Stored size: 558 Bytes

Contents

class Ey::Core::Client
  class Real
    def get_account(params={})
      id  = params["id"]
      url = params["url"]

      request(
        :path => "accounts/#{id}",
        :url  => url,
      )
    end
  end # Real

  class Mock
    def get_account(params={})
      identity = resource_identity(params)

      account = self.find(:accounts, identity)
      resource = account.dup

      resource.delete(:users)
      resource.delete(:owners)

      response(
        :body => {"account" => resource},
      )
    end
  end # Mock
end # Ey::Core::Client

Version data entries

53 entries across 53 versions & 3 rubygems

Version Path
ey-core-3.6.4 lib/ey-core/requests/get_account.rb
ey-core-3.6.3 lib/ey-core/requests/get_account.rb
ey-core-3.6.1 lib/ey-core/requests/get_account.rb
groove-ey-core-3.6.3 lib/ey-core/requests/get_account.rb
groove-ey-core-3.6.2 lib/ey-core/requests/get_account.rb
groove-ey-core-3.6.1 lib/ey-core/requests/get_account.rb
ey-core-3.5.0 lib/ey-core/requests/get_account.rb
ey-core-3.4.4 lib/ey-core/requests/get_account.rb
ey-core-3.4.2 lib/ey-core/requests/get_account.rb
ey-core-3.4.1 lib/ey-core/requests/get_account.rb
ey-core-3.4.0 lib/ey-core/requests/get_account.rb
ey-core-3.3.1 lib/ey-core/requests/get_account.rb
ey-core-3.3.0 lib/ey-core/requests/get_account.rb
ey-core-3.2.6 lib/ey-core/requests/get_account.rb
ey-core-3.2.5 lib/ey-core/requests/get_account.rb
ey-core-3.2.4 lib/ey-core/requests/get_account.rb
ey-core-3.2.3 lib/ey-core/requests/get_account.rb
ey-core-3.2.2 lib/ey-core/requests/get_account.rb
ey-core-3.2.1 lib/ey-core/requests/get_account.rb
ey-core-3.2.0 lib/ey-core/requests/get_account.rb