Class: Myfinance::Http
- Inherits:
-
Object
- Object
- Myfinance::Http
- Defined in:
- lib/myfinance/http.rb
Instance Attribute Summary collapse
-
#account_id ⇒ Object
readonly
Returns the value of attribute account_id.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(token, account_id = nil) ⇒ Http
constructor
A new instance of Http.
Constructor Details
#initialize(token, account_id = nil) ⇒ Http
Returns a new instance of Http.
8 9 10 11 |
# File 'lib/myfinance/http.rb', line 8 def initialize(token, account_id = nil) @token = token @account_id = account_id end |
Instance Attribute Details
#account_id ⇒ Object (readonly)
Returns the value of attribute account_id.
6 7 8 |
# File 'lib/myfinance/http.rb', line 6 def account_id @account_id end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
6 7 8 |
# File 'lib/myfinance/http.rb', line 6 def token @token end |