Class: Pork::Auth
- Inherits:
-
Object
- Object
- Pork::Auth
- Defined in:
- lib/pork_sandwich/auth.rb
Instance Attribute Summary collapse
-
#auth ⇒ Object
Returns the value of attribute auth.
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(username, password, user_agent = '') ⇒ Auth
constructor
A new instance of Auth.
Constructor Details
#initialize(username, password, user_agent = '') ⇒ Auth
Returns a new instance of Auth.
5 6 7 |
# File 'lib/pork_sandwich/auth.rb', line 5 def initialize(username, password, user_agent = '') @auth = Twitter::Base.new(Twitter::HTTPAuth.new(username, password, :user_agent => user_agent)) end |
Instance Attribute Details
#auth ⇒ Object
Returns the value of attribute auth.
3 4 5 |
# File 'lib/pork_sandwich/auth.rb', line 3 def auth @auth end |
#password ⇒ Object (readonly)
Returns the value of attribute password.
4 5 6 |
# File 'lib/pork_sandwich/auth.rb', line 4 def password @password end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
4 5 6 |
# File 'lib/pork_sandwich/auth.rb', line 4 def username @username end |