Class: RTM::Axes::Characteristic
- Inherits:
- ItemProxy show all
- Defined in:
- rtm/lib/rtm/axes.rb,
rtm/lib/rtm/axes/characteristic.rb,
rtm/spec/rtm/axes/characteristic_spec.rb
Overview
--- RTM::Axes::Characteristic ---------------------#
Direct Known Subclasses
Instance Method Summary
-
- (Object) atomify
Returns the atomic value of the Characteristic.
-
- (Object) reverse_characteristics(type = :any)
Returns the Topic this Characteristic belongs to.
-
- (Object) reverse_reifier
Returns the reifing Topic of this Characteristic or nil, if no such Topic exists.
-
- (Object) scope
Returns the scope of this Characteristic.
Methods inherited from Proxy
Constructor Details
This class inherits a constructor from RTM::Axes::Proxy
Instance Method Details
- (Object) atomify
Returns the atomic value of the Characteristic.
:call-seq:
atomify -> String
15 16 17 18 |
# File 'rtm/lib/rtm/axes/characteristic.rb', line 15 def atomify _res = @construct.atomify #String RTM::Axes::String.new(_res,@tm) end |
- (Object) reverse_characteristics(type = :any)
Returns the Topic this Characteristic belongs to. The optional argument identifier filters the Characteristic for its type. If the type does not match, nil is returned.
The identifier may be a topic reference.
:call-seq:
reverse_characteristics -> Topic reverse_characteristics(identifier) -> Topic or nil
33 34 35 36 |
# File 'rtm/lib/rtm/axes/characteristic.rb', line 33 def reverse_characteristics(type=:any) _res = @construct.reverse_characteristics(type) #Topic or nil RTM::Axes::Topic.new(_res,@tm) if _res end |
- (Object) reverse_reifier
Returns the reifing Topic of this Characteristic or nil, if no such Topic exists.
:call-seq:
reverse_reified -> Topic or nil
47 48 49 50 |
# File 'rtm/lib/rtm/axes/characteristic.rb', line 47 def reverse_reifier _res = @construct.reifier #Topic or nil RTM::Axes::Topic.new(_res,@tm) if _res end |
- (Object) scope
Returns the scope of this Characteristic.
The result may be empty.
:call-seq:
scope -> Array of Topics
61 62 63 64 |
# File 'rtm/lib/rtm/axes/characteristic.rb', line 61 def scope _res = @construct.scope.map{|r| r.axes} _res.extend(Topics) end |