Class: CircleCI::CLI::Response::Account

Inherits:
Object
  • Object
show all
Defined in:
lib/circleci/cli/response/account.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ Account

Returns a new instance of Account.



7
8
9
# File 'lib/circleci/cli/response/account.rb', line 7

def initialize(hash)
  @hash = hash
end

Class Method Details

.meObject



16
17
18
# File 'lib/circleci/cli/response/account.rb', line 16

def me
  Account.new(CircleCi::User.new.me.body)
end

Instance Method Details

#pusher_idObject



11
12
13
# File 'lib/circleci/cli/response/account.rb', line 11

def pusher_id
  @hash['pusher_id']
end