Class: StackExchange::StackOverflow::Tag
- Inherits:
-
Base
- Object
- Base
- StackExchange::StackOverflow::Tag
show all
- Defined in:
- lib/pilha/stack_overflow/tag.rb
Class Method Summary
collapse
Methods inherited from Base
#api_methods, client, #initialize, parse_with_class, request, setup_delegators
Class Method Details
.all(options = {}) ⇒ Object
8
9
10
|
# File 'lib/pilha/stack_overflow/tag.rb', line 8
def all(options = {})
request('/tags', nil, options)
end
|
.find_by_user_id(id, options = {}) ⇒ Object
12
13
14
|
# File 'lib/pilha/stack_overflow/tag.rb', line 12
def find_by_user_id(id, options = {})
request('/users/:id/tags', id, options)
end
|
.parse(response) ⇒ Object
16
17
18
19
|
# File 'lib/pilha/stack_overflow/tag.rb', line 16
def parse(response)
parse_with_class(response, 'tags', Tag)
OpenStruct.new response
end
|