class Glassfrog::Action

Encapsulates GlassFrog Actions.

Constants

PATH
TYPE

Attributes

created_at[RW]

@return [String]

description[RW]

@return [String]

private_to_circle[RW]

@return [Boolean]

Public Class Methods

get(client, options) click to toggle source

Sends a GET request for Action(s) to GlassFrog. @param client [Glassfrog::Client] The client that will send the request. Contains the API key. @param options [Hash, Glassfrog::Base] The options used to find the correct Actions(s).

@return [Array<Glassfrog::Action>] The array of Action(s) fetched from GlassFrog.

# File lib/glassfrog/action.rb, line 24
def self.get(client, options)
  response = Glassfrog::REST::Get.irregular_get(client, TYPE, PATH, options)
  response[TYPE] ? response[TYPE].map { |object| self.new(object) } : []
end