Class: ATProto::Record::StrongRef

Inherits:
T::Struct
  • Object
show all
Extended by:
T::Sig
Includes:
ATProto::RequestUtils
Defined in:
lib/at_protocol/record/strongref.rb

Instance Method Summary collapse

Methods included from ATProto::RequestUtils

at_uri, #create_session_uri, #default_authenticated_headers, #default_headers, #delete_record_uri, #delete_session_uri, #get_paginated_data, #get_post_thread_uri, #get_session_uri, #mute_actor_uri, #query_obj_to_query_params, #refresh_session_uri, #refresh_token_headers, #resolve_handle, #upload_blob_uri

Instance Method Details

#inspectObject



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

def inspect
  self.to_json.to_json
end

#to_jsonObject



10
11
12
13
14
15
# File 'lib/at_protocol/record/strongref.rb', line 10

def to_json
  {
    "uri" => uri.to_s,
    "cid" => cid.to_s,
  }
end