Class: BadASS::Client
- Inherits:
-
Object
- Object
- BadASS::Client
- Defined in:
- lib/badass/client.rb
Overview
A client to periodically check for new toys and news to avoid spamming the BD API directly.
Instance Attribute Summary collapse
-
#drops ⇒ Array<BadASS::Toy>
readonly
The current drops.
-
#sales ⇒ Array<BadASS::Sale>
readonly
The current BD sales.
Instance Method Summary collapse
-
#initialize(refresh_rate: 600) ⇒ Client
constructor
Creates a client to do API operations.
Constructor Details
Instance Attribute Details
#drops ⇒ Array<BadASS::Toy> (readonly)
Returns the current drops.
14 15 16 |
# File 'lib/badass/client.rb', line 14 def drops @drops end |
#sales ⇒ Array<BadASS::Sale> (readonly)
Returns the current BD sales.
16 17 18 |
# File 'lib/badass/client.rb', line 16 def sales @sales end |