Class: Rallio::FranchisorOwnership
- Inherits:
-
OwnershipsBase
- Object
- Base
- OwnershipsBase
- Rallio::FranchisorOwnership
- Defined in:
- lib/rallio/franchisor_ownership.rb
Overview
Represents a franchisor ownership as it comes from Rallio.
Instance Attribute Summary collapse
-
#franchisor_id ⇒ Integer
Unique id for franchisor.
-
#franchisor_name ⇒ String
Franchisor name.
-
#user_id ⇒ Integer
Unique id for user.
Class Method Summary collapse
-
.response_key ⇒ String
Key used to extract response object from API response hash.
-
.url_segment ⇒ String
Url segment used by base class to build correct endpoint.
Methods inherited from OwnershipsBase
Methods inherited from Base
Instance Attribute Details
#franchisor_id ⇒ Integer
Returns unique id for franchisor.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/rallio/franchisor_ownership.rb', line 10 class FranchisorOwnership < OwnershipsBase attribute :user_id, Integer attribute :franchisor_id, Integer attribute :franchisor_name, String # Url segment used by base class to build correct endpoint. # # @return [String] def self.url_segment 'franchisor_ownerships' end # Key used to extract response object from API response hash. # # @return [String] def self.response_key 'franchisor_ownership' end end |
#franchisor_name ⇒ String
Returns franchisor name.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/rallio/franchisor_ownership.rb', line 10 class FranchisorOwnership < OwnershipsBase attribute :user_id, Integer attribute :franchisor_id, Integer attribute :franchisor_name, String # Url segment used by base class to build correct endpoint. # # @return [String] def self.url_segment 'franchisor_ownerships' end # Key used to extract response object from API response hash. # # @return [String] def self.response_key 'franchisor_ownership' end end |
#user_id ⇒ Integer
Returns unique id for user.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/rallio/franchisor_ownership.rb', line 10 class FranchisorOwnership < OwnershipsBase attribute :user_id, Integer attribute :franchisor_id, Integer attribute :franchisor_name, String # Url segment used by base class to build correct endpoint. # # @return [String] def self.url_segment 'franchisor_ownerships' end # Key used to extract response object from API response hash. # # @return [String] def self.response_key 'franchisor_ownership' end end |
Class Method Details
.response_key ⇒ String
Key used to extract response object from API response hash.
25 26 27 |
# File 'lib/rallio/franchisor_ownership.rb', line 25 def self.response_key 'franchisor_ownership' end |
.url_segment ⇒ String
Url segment used by base class to build correct endpoint.
18 19 20 |
# File 'lib/rallio/franchisor_ownership.rb', line 18 def self.url_segment 'franchisor_ownerships' end |