Class: ACTV::AssetTopic
Instance Attribute Summary collapse
-
#sequence ⇒ Object
readonly
Returns the value of attribute sequence.
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#[], attr_reader, define_attribute_method, define_predicate_method, define_uri_method, #delete, from_response, #initialize, #memoize, #method_missing, object_attr_reader, #respond_to?, #to_hash, #update, uri_attr_reader
Constructor Details
This class inherits a constructor from ACTV::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ACTV::Base
Instance Attribute Details
#sequence ⇒ Object (readonly)
Returns the value of attribute sequence.
5 6 7 |
# File 'lib/actv/asset_topic.rb', line 5 def sequence @sequence end |
Instance Method Details
#<=>(topic) ⇒ Object
11 12 13 |
# File 'lib/actv/asset_topic.rb', line 11 def <=> topic sequence <=> topic.sequence end |
#topic ⇒ Object
7 8 9 |
# File 'lib/actv/asset_topic.rb', line 7 def topic @topic ||= ACTV::Topic.new(@attrs[:topic]) unless @attrs[:topic].nil? end |