Module: Skype::AbstractObject::Get

Included in:
Skype, Skype::AbstractObject
Defined in:
lib/skype/object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#property2callbackObject (readonly)

Returns the value of attribute property2callback.



68
69
70
# File 'lib/skype/object.rb', line 68

def property2callback
  @property2callback
end

#property2symbolObject (readonly)

Returns the value of attribute property2symbol.



68
69
70
# File 'lib/skype/object.rb', line 68

def property2symbol
  @property2symbol
end

Instance Method Details

#def_parser(sym, property = sym.to_s.upcase, &callback) ⇒ Object



64
65
66
# File 'lib/skype/object.rb', line 64

def def_parser sym, property=sym.to_s.upcase, &callback
  notice sym, property, &callback
end

#notice(methodName, skypeProperty, &callBack) ⇒ Object

end



54
55
56
57
58
59
60
61
62
# File 'lib/skype/object.rb', line 54

def notice methodName, skypeProperty, &callBack
  if Skype.kind_of? self
    Skype.property2symbol[skypeProperty] = methodName.to_sym
    Skype.property2callback[skypeProperty] = callBack if callBack
  else
    property2symbol[skypeProperty] = methodName.to_sym
    property2callback[skypeProperty] = callBack if callBack
  end
end