Class: Yo
- Inherits:
-
Object
- Object
- Yo
- Defined in:
- lib/yo.rb
Instance Attribute Summary collapse
-
#api_token ⇒ Object
Returns the value of attribute api_token.
Instance Method Summary collapse
-
#initialize(api_token) ⇒ Yo
constructor
A new instance of Yo.
- #yo ⇒ Object
Constructor Details
#initialize(api_token) ⇒ Yo
Returns a new instance of Yo.
6 7 8 |
# File 'lib/yo.rb', line 6 def initialize(api_token) @@api_token = api_token end |
Instance Attribute Details
#api_token ⇒ Object
Returns the value of attribute api_token.
4 5 6 |
# File 'lib/yo.rb', line 4 def api_token @api_token end |
Instance Method Details
#yo ⇒ Object
10 11 12 |
# File 'lib/yo.rb', line 10 def yo Net::HTTP.post_form(URI('http://api.justyo.co/yoall/'), 'api_token' => @@api_token) end |