Class: DevRuby::Resources::FollowsResource

Inherits:
BaseResource show all
Defined in:
lib/dev_ruby/resources/follows_resource.rb

Instance Attribute Summary

Attributes inherited from BaseResource

#client

Instance Method Summary collapse

Methods inherited from BaseResource

#initialize

Constructor Details

This class inherits a constructor from DevRuby::Resources::BaseResource

Instance Method Details

#followed_tags(**params) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/dev_ruby/resources/follows_resource.rb', line 6

def followed_tags(**params)
  params = to_default_pagination_params(params)

  response = get_request('follows/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