Class: AddonsApi::Client::Team
- Inherits:
-
Object
- Object
- AddonsApi::Client::Team
- Defined in:
- lib/addons-api/client.rb
Defined Under Namespace
Constant Summary collapse
- BASE_PATH =
"teams"
Instance Method Summary collapse
-
#addon ⇒ Object
Addon resource.
- #info(team_id) ⇒ Object
-
#initialize(client) ⇒ Team
constructor
A new instance of Team.
- #list ⇒ Object
- #member ⇒ Object
Constructor Details
#initialize(client) ⇒ Team
Returns a new instance of Team.
211 212 213 |
# File 'lib/addons-api/client.rb', line 211 def initialize(client) @client = client end |
Instance Method Details
#addon ⇒ Object
Addon resource
228 229 230 |
# File 'lib/addons-api/client.rb', line 228 def addon @addon_resource ||= Addon.new(@client) end |
#info(team_id) ⇒ Object
219 220 221 |
# File 'lib/addons-api/client.rb', line 219 def info(team_id) @client.request(:get, "#{BASE_PATH}/#{team_id}") end |
#list ⇒ Object
215 216 217 |
# File 'lib/addons-api/client.rb', line 215 def list() @client.request(:get, "#{BASE_PATH}") end |