Class: AxHub::Data::AppScope

Inherits:
Object
  • Object
show all
Defined in:
lib/axhub_sdk/data.rb

Overview

Fluent scope wrappers so the public chain reads ‘client.tenant(t).app(a).data` (mirrors node/python, where `.data` on the app scope yields the ergonomic AppDataFactory). `client.data` itself stays the operation-id OperationClient.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ergo_data, tenant_slug, app_slug) ⇒ AppScope

Returns a new instance of AppScope.



32
33
34
35
36
# File 'lib/axhub_sdk/data.rb', line 32

def initialize(ergo_data, tenant_slug, app_slug)
  # `ergo_data` is the single per-client DataClient (memoized on Client), so
  # its schema cache persists across every tenant().app() chain — node parity.
  @data = ergo_data.scoped(tenant_slug).app(app_slug)
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



30
31
32
# File 'lib/axhub_sdk/data.rb', line 30

def data
  @data
end