Class: ATProto::Writes
- Inherits:
-
T::Struct
- Object
- T::Struct
- ATProto::Writes
show all
- Extended by:
- T::Sig
- Defined in:
- lib/at_protocol/writes.rb,
lib/at_protocol/writes.rb
Defined Under Namespace
Classes: Collector, Write
Instance Method Summary
collapse
Instance Method Details
#apply ⇒ Object
100
101
102
|
# File 'lib/at_protocol/writes.rb', line 100
def apply
self.session.xrpc.post.com_atproto_repo_applyWrites(**to_h)
end
|
#to_h ⇒ Object
93
94
95
96
97
98
|
# File 'lib/at_protocol/writes.rb', line 93
def to_h
{
writes: self.writes.map(&:to_h).compact,
repo: self.repo.to_s,
}.compact
end
|