Class: Glassfrog::Trigger
Overview
Encapsulates GlassFrog Actions.
Constant Summary collapse
- PATH =
'/triggers'
- TYPE =
:triggers
Instance Attribute Summary collapse
Attributes inherited from Base
Class Method Summary collapse
-
.get(client, options) ⇒ Array<Glassfrog::Trigger>
Sends a GET request for Trigger(s) to GlassFrog.
Methods inherited from Base
Methods included from Utils
#extract_id, #parameterize, #symbolize_keys
Constructor Details
This class inherits a constructor from Glassfrog::Base
Instance Attribute Details
#created_at ⇒ String
10 11 12 |
# File 'lib/glassfrog/trigger.rb', line 10 def created_at @created_at end |
#description ⇒ String
10 11 12 |
# File 'lib/glassfrog/trigger.rb', line 10 def description @description end |
#links ⇒ Hash
14 15 16 |
# File 'lib/glassfrog/trigger.rb', line 14 def links @links end |
#private_to_circle ⇒ Boolean
12 13 14 |
# File 'lib/glassfrog/trigger.rb', line 12 def private_to_circle @private_to_circle end |
Class Method Details
.get(client, options) ⇒ Array<Glassfrog::Trigger>
Sends a GET request for Trigger(s) to GlassFrog.
24 25 26 27 |
# File 'lib/glassfrog/trigger.rb', line 24 def self.get(client, ) response = Glassfrog::REST::Get.irregular_get(client, TYPE, PATH, ) response[TYPE] ? response[TYPE].map { |object| self.new(object) } : [] end |