Class: ATProto::Credentials

Inherits:
Struct
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/at_protocol/session.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(username, pw, pds = "https://bsky.social") ⇒ Credentials

Returns a new instance of Credentials.



9
10
11
12
# File 'lib/at_protocol/session.rb', line 9

def initialize(username, pw, pds = "https://bsky.social")
  super
  self.pds ||= "https://bsky.social"
end

Instance Attribute Details

#pdsObject

Returns the value of attribute pds

Returns:

  • (Object)

    the current value of pds



4
5
6
# File 'lib/at_protocol/session.rb', line 4

def pds
  @pds
end

#pwObject

Returns the value of attribute pw

Returns:

  • (Object)

    the current value of pw



4
5
6
# File 'lib/at_protocol/session.rb', line 4

def pw
  @pw
end

#usernameObject

Returns the value of attribute username

Returns:

  • (Object)

    the current value of username



4
5
6
# File 'lib/at_protocol/session.rb', line 4

def username
  @username
end