class Psapi::YellowPage
Attributes
announcings[R]
Public Class Methods
new(hash)
click to toggle source
Calls superclass method
Psapi::API_Object::new
# File lib/psapi/yellow_page.rb, line 8 def initialize(hash) super @announcings = hash['channels'].map { |h| Announcing.new(h) } @protocol = hash['protocol'] end
Public Instance Methods
protocol()
click to toggle source
# File lib/psapi/yellow_page.rb, line 16 def protocol Protocol.all.find { |prot| prot.protocol == @protocol } or fail "yellow page protocol #{@protocol} not found" end
remove()
click to toggle source
# File lib/psapi/yellow_page.rb, line 34 def remove end
save()
click to toggle source
# File lib/psapi/yellow_page.rb, line 31 def save end