Class: Jbr::Account

Inherits:
Resource show all
Defined in:
lib/jbr/account.rb

Constant Summary collapse

FIND =
<<~GRAPHQL.freeze
  { account { id } }
GRAPHQL

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from Jbr::Resource

Instance Method Details

#idObject



7
8
9
# File 'lib/jbr/account.rb', line 7

def id
  @id ||= @oauth.query(FIND).dig 'account', 'id'
end