Class: SpreeCmCommissioner::Integrations::BookMeBusV1::Resources::Operator
- Inherits:
-
Base
- Object
- Base
- SpreeCmCommissioner::Integrations::BookMeBusV1::Resources::Operator
- Defined in:
- app/services/spree_cm_commissioner/integrations/book_me_bus_v1/resources/operator.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#slug ⇒ Object
Returns the value of attribute slug.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Methods inherited from Base
from_json_api, from_json_api_item, from_json_api_single, #initialize
Constructor Details
This class inherits a constructor from SpreeCmCommissioner::Integrations::BookMeBusV1::Resources::Base
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'app/services/spree_cm_commissioner/integrations/book_me_bus_v1/resources/operator.rb', line 3 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'app/services/spree_cm_commissioner/integrations/book_me_bus_v1/resources/operator.rb', line 3 def name @name end |
#slug ⇒ Object
Returns the value of attribute slug.
3 4 5 |
# File 'app/services/spree_cm_commissioner/integrations/book_me_bus_v1/resources/operator.rb', line 3 def slug @slug end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'app/services/spree_cm_commissioner/integrations/book_me_bus_v1/resources/operator.rb', line 3 def type @type end |
Instance Method Details
#to_h ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'app/services/spree_cm_commissioner/integrations/book_me_bus_v1/resources/operator.rb', line 8 def to_h { id: id, type: type, name: name, slug: slug }.compact end |