Sha256: 71f64a0abaa950edc04dede0733e0952d7a16e144e05237c56855d8b350f22da
Contents?: true
Size: 1.22 KB
Versions: 16
Compression:
Stored size: 1.22 KB
Contents
require_relative 'resource' module Eucalyptus class Account < Resource def self.known_fields [ :account_id, :account_status, :age, :agency_client_declaration, :amount_spent, :balance, :business, :business_city, :business_country_code, :business_name, :business_street, :business_street2, :business_zip, :capabilities, :created_time, :currency, :daily_spend_limit, :end_advertiser, :funding_source, :funding_source_details, :is_personal, :media_agency, :name, :offsite_pixels_tos_accepted, :partner, :rf_spec, :spend_cap, :tax_id_status, :timezone_id, :timezone_name, :timezone_offset_hours_utc, :tos_accepted, :users ] end def self.api_path "adaccounts" end # 'me' is a facebook helper which refers to the user who created the access token # # there is no object which abstracts this, which is why we're using a generic # open struct that can response to id def self.parent OpenStruct.new(id: "me") end end end
Version data entries
16 entries across 16 versions & 1 rubygems