Module: ATProto

Extended by:
T::Sig
Defined in:
lib/at_protocol/at_uri.rb,
lib/at_protocol.rb,
lib/at_protocol/at_uri.rb,
lib/at_protocol/record.rb,
lib/at_protocol/writes.rb,
lib/at_protocol/session.rb,
lib/at_protocol/session.rb,
lib/at_protocol/version.rb,
lib/at_protocol/requests.rb,
lib/at_protocol/requests.rb,
lib/at_protocol/collection.rb,
lib/at_protocol/record/strongref.rb,
ext/at_protocol/tid.c

Overview

typed: true

Defined Under Namespace

Modules: AtUriParser, RequestUtils Classes: AtUri, Credentials, Error, HTTPError, Record, Repo, Session, TID, TokenSession, UnauthorizedError, Writes

Constant Summary collapse

CID =
Skyfall::CID
VERSION =
"0.0.4.3"

Class Method Summary collapse

Class Method Details

.AtUri(str) ⇒ Object



17
18
19
# File 'lib/at_protocol/at_uri.rb', line 17

def self.AtUri(str)
  RequestUtils.at_uri(str)
end

.method_missing(method_name, *args, &block) ⇒ Object



20
21
22
23
24
25
26
# File 'lib/at_protocol.rb', line 20

def method_missing(method_name, *args, &block)
  if const_defined?(method_name)
    Object.const_get(method_name).new(*args, &block)
  else
    super
  end
end

.Writes(session, &block) ⇒ Object



109
110
111
# File 'lib/at_protocol/writes.rb', line 109

def self.Writes(session, &block)
  Writes.new(writes: Writes::Collector.new.instance_eval(&block), session: session, repo: Repo.new(session.did))
end