Class: Praxicraft::Resources::Org

Inherits:
Object
  • Object
show all
Defined in:
lib/praxicraft/resources/org.rb

Instance Method Summary collapse

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

#retrieveObject



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