Class: ATProto::Credentials
- Inherits:
-
Struct
- Object
- Struct
- ATProto::Credentials
- Extended by:
- T::Sig
- Defined in:
- lib/at_protocol/session.rb
Instance Attribute Summary collapse
-
#pds ⇒ Object
Returns the value of attribute pds.
-
#pw ⇒ Object
Returns the value of attribute pw.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(username, pw, pds = "https://bsky.social") ⇒ Credentials
constructor
A new instance of Credentials.
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
#pds ⇒ Object
Returns the value of attribute pds
4 5 6 |
# File 'lib/at_protocol/session.rb', line 4 def pds @pds end |
#pw ⇒ Object
Returns the value of attribute pw
4 5 6 |
# File 'lib/at_protocol/session.rb', line 4 def pw @pw end |
#username ⇒ Object
Returns the value of attribute username
4 5 6 |
# File 'lib/at_protocol/session.rb', line 4 def username @username end |