Class: Praxicraft::Resources::Org
- Inherits:
-
Object
- Object
- Praxicraft::Resources::Org
- Defined in:
- lib/praxicraft/resources/org.rb
Instance Method Summary collapse
-
#initialize(client) ⇒ Org
constructor
A new instance of Org.
- #retrieve ⇒ Object
- #stats(params = nil) ⇒ Object
Constructor Details
#initialize(client) ⇒ Org
Returns a new instance of Org.
6 7 8 |
# File 'lib/praxicraft/resources/org.rb', line 6 def initialize(client) @client = client end |
Instance Method Details
#retrieve ⇒ Object
10 11 12 |
# File 'lib/praxicraft/resources/org.rb', line 10 def retrieve @client.get("/org/") end |
#stats(params = nil) ⇒ Object
14 15 16 |
# File 'lib/praxicraft/resources/org.rb', line 14 def stats(params = nil) @client.get("/org/stats/", normalize(params)) end |