lib/rallio/account_ownership.rb
module Rallio
# Represents an account ownership object as it comes from Rallio.
#
# @!attribute [rw] user_id
# @return [Integer] unique id for user
# @!attribute [rw] account_id
# @return [Integer] unique id for account
# @!attribute [rw] account_name
# @return [String] account name
# @!attribute [rw] account_franchisor_id
# @return [Integer] unique id for franchisor
# @!attribute [rw] account_franchisor_name
# @return [String] franchisor name
class AccountOwnership < OwnershipsBase
attribute :user_id, Integer
attribute :account_id, Integer
attribute :account_name, String
attribute :account_franchisor_id, Integer
attribute :account_franchisor_name, String
# (see Rallio::FranchisorOwnership.url_segment)
def self.url_segment
'account_ownerships'
end
# (see Rallio::FranchisorOwnership.response_key)
def self.response_key
'account_ownership'
end
end
end