Class: CloudSpokes::Model::Category
- Inherits:
-
BaseApi
- Object
- BaseApi
- CloudSpokes::Model::Category
- Defined in:
- app/models/cloud_spokes/model/category.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#color ⇒ Object
Returns the value of attribute color.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Class Method Summary collapse
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
2 3 4 |
# File 'app/models/cloud_spokes/model/category.rb', line 2 def attributes @attributes end |
#color ⇒ Object
Returns the value of attribute color.
2 3 4 |
# File 'app/models/cloud_spokes/model/category.rb', line 2 def color @color end |
#id ⇒ Object
Returns the value of attribute id.
2 3 4 |
# File 'app/models/cloud_spokes/model/category.rb', line 2 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'app/models/cloud_spokes/model/category.rb', line 2 def name @name end |
Class Method Details
.api_endpoint ⇒ Object
5 6 7 |
# File 'app/models/cloud_spokes/model/category.rb', line 5 def self.api_endpoint CloudSpokes::APP_CONFIG[:cs_api][:categories] end |
.names ⇒ Object
9 10 11 |
# File 'app/models/cloud_spokes/model/category.rb', line 9 def self.names all.map {|category| category.name} end |