Sha256: 27fc3fa7c1b6a83957c7268c56101ce514f0274358dc77871668c8564e4ce849
Contents?: true
Size: 497 Bytes
Versions: 1
Compression:
Stored size: 497 Bytes
Contents
module Washbullet class Channel attr_reader :body def self.from_response(response) response.body['subscriptions'].each_with_object([]) {|attributes, memo| next unless attributes['active'] memo << new(attributes['channel']) } end def initialize(response_body) @body = response_body end def name body['name'] end def description body['description'] end def identifier body['iden'] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
washbullet-0.4.0 | lib/washbullet/channel.rb |