Class: Avocado::Resource
- Inherits:
-
Object
- Object
- Avocado::Resource
- Includes:
- ActiveModel::Model
- Defined in:
- app/models/avocado/resource.rb
Instance Attribute Summary collapse
-
#endpoints ⇒ Object
Returns the value of attribute endpoints.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #<=>(other) ⇒ Object
-
#initialize ⇒ Resource
constructor
A new instance of Resource.
Constructor Details
#initialize ⇒ Resource
Returns a new instance of Resource.
7 8 9 10 |
# File 'app/models/avocado/resource.rb', line 7 def initialize(*) @endpoints = Set.new super end |
Instance Attribute Details
#endpoints ⇒ Object
Returns the value of attribute endpoints.
5 6 7 |
# File 'app/models/avocado/resource.rb', line 5 def endpoints @endpoints end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'app/models/avocado/resource.rb', line 5 def name @name end |
Instance Method Details
#<=>(other) ⇒ Object
12 13 14 |
# File 'app/models/avocado/resource.rb', line 12 def <=>(other) name <=> other.name end |