Sha256: e957df307c5305ab3988baaaf7cbf51f2d3560384c771f572c5198a6eb2e0a11
Contents?: true
Size: 1.12 KB
Versions: 2
Compression:
Stored size: 1.12 KB
Contents
# frozen_string_literal: true module DevRuby module Resources class TagsResource < BaseResource def all(**params) params = to_default_pagination_params(params) response = get_request('tags', params: params) if Helpers.expected_response?(response, 200) collection = Collection.from_response(response: response, type: DevRuby::Objects::Tag, params: params) Success(collection) else Failure(error_parser(response)) end end def followed_tags(**params) params = to_default_pagination_params(params) response = get_request('tags', params: params) if Helpers.expected_response?(response, 200) collection = Collection.from_response(response: response, type: DevRuby::Objects::Tag, params: params) Success(collection) else Failure(error_parser(response)) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dev_ruby-1.0.0 | lib/dev_ruby/resources/tags_resource.rb |
dev_ruby-0.2.0 | lib/dev_ruby/resources/tags_resource.rb |