File: fields.rb

package info (click to toggle)
ruby-behance 0.6.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,344 kB
  • sloc: ruby: 715; makefile: 4
file content (28 lines) | stat: -rw-r--r-- 597 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Fields Endpoints.
module Behance
  class Client
    module Fields
      # Public: Retrieve all Creative Fields (in 'fields').
      #
      # Examples
      #
      #   @client.fields
      #
      # Returns an array of creative fields in JSON format.
      def fields
        request("fields")["fields"]
      end

      # Public: Retrieve all Creative Fields (in 'popular').
      #
      # Examples
      #
      #   @client.popular
      #
      # Returns an array of popular creative fields in JSON format.
      def popular
        request("fields")["popular"]
      end
    end
  end
end