Module: Ltp::Cloud::Sdk

Defined in:
lib/ltp/cloud/sdk.rb,
lib/ltp/cloud/sdk/client.rb,
lib/ltp/cloud/sdk/version.rb

Defined Under Namespace

Classes: Client

Constant Summary collapse

VERSION =
"0.1.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_keyObject

Returns the value of attribute api_key.



8
9
10
# File 'lib/ltp/cloud/sdk.rb', line 8

def api_key
  @api_key
end

Class Method Details

.clientObject



14
15
16
# File 'lib/ltp/cloud/sdk.rb', line 14

def client
  @client ||= Client.with(api_key)
end

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



10
11
12
# File 'lib/ltp/cloud/sdk.rb', line 10

def configure
  yield self if block_given?
end