class Blinkbox::Device
Public Class Methods
new(hash)
click to toggle source
# File lib/blinkbox/user/device.rb, line 3 def initialize(hash) hash.keys.each do |key| instance_eval %Q{ @#{key} = "#{hash[key]}" Device.class_eval{ attr_reader key.to_sym } } end end
Public Instance Methods
id()
click to toggle source
# File lib/blinkbox/user/device.rb, line 12 def id @client_id ? @client_id.split(':').last : nil end