Class: NeonMob
- Inherits:
-
Object
- Object
- NeonMob
- Defined in:
- lib/neon_mob.rb
Constant Summary collapse
- URL =
URI('https://www.neonmob.com')
Instance Method Summary collapse
-
#initialize(username, password) ⇒ NeonMob
constructor
A new instance of NeonMob.
- #login ⇒ Object
Constructor Details
#initialize(username, password) ⇒ NeonMob
Returns a new instance of NeonMob.
7 8 9 10 |
# File 'lib/neon_mob.rb', line 7 def initialize(username, password) @password = password @username = username end |
Instance Method Details
#login ⇒ Object
12 13 14 |
# File 'lib/neon_mob.rb', line 12 def login @login = post('/api/signin/', login_params).parse end |