Class: Screenbeacon::Project

Inherits:
APIResource show all
Includes:
APIOperations::Create, APIOperations::Delete, APIOperations::List, APIOperations::Update
Defined in:
lib/screenbeacon/project.rb

Instance Method Summary collapse

Methods included from APIOperations::List

included

Methods included from APIOperations::Delete

#delete

Methods included from APIOperations::Update

#save

Methods included from APIOperations::Create

included

Methods inherited from APIResource

class_name, #refresh, retrieve, url, #url

Methods included from APIOperations::Request

included

Methods inherited from ScreenbeaconObject

#[], #[]=, #_dump, _load, #as_json, construct_from, #each, #initialize, #inspect, #keys, #refresh_from, #respond_to?, #serialize_nested_object, serialize_params, #to_hash, #to_json, #to_s, #values

Constructor Details

This class inherits a constructor from Screenbeacon::ScreenbeaconObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Screenbeacon::ScreenbeaconObject

Instance Method Details

#alertsObject



8
9
10
# File 'lib/screenbeacon/project.rb', line 8

def alerts
  Alert.all({ :project_id => id }, @opts)
end

#resolve_all(opts = {}) ⇒ Object



12
13
14
15
# File 'lib/screenbeacon/project.rb', line 12

def resolve_all(opts={})
  response, opts = request(:patch, resolve_url, {}, opts)
  refresh_from(response, opts)
end