Class: Nucleo::Models::PageAlerts

Inherits:
Object
  • Object
show all
Defined in:
lib/nucleo/models/page_alerts.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Nucleo::Models::PageAlerts

Returns an instance of Page Alerts

Parameters:

  • attributes (Hash) (defaults to: {})


11
12
13
# File 'lib/nucleo/models/page_alerts.rb', line 11

def initialize(attributes={})
  @attributes = attributes
end

Class Method Details

.retrieve(id, params = {}) ⇒ Object



15
16
17
18
19
# File 'lib/nucleo/models/page_alerts.rb', line 15

def self.retrieve(id, params={})
  response_body = Nucleo::Requests::PageAlerts.retrieve(id, params)

  self.new(response_body)
end

Instance Method Details

#alertsObject



21
22
23
# File 'lib/nucleo/models/page_alerts.rb', line 21

def alerts
  Nucleo::Models::Feeds.new(@attributes)
end