class GatherContent::Api::Account
Attributes
account_id[RW]
Public Class Methods
new(account_id, data = nil)
click to toggle source
# File lib/gather_content/api/account.rb, line 6 def initialize(account_id, data = nil) raise ArgumentError, "account_id is required!" if account_id.nil? @account_id = account_id @data = data end
Public Instance Methods
[](key)
click to toggle source
# File lib/gather_content/api/account.rb, line 12 def [](key) fetch[key] end
Private Instance Methods
params()
click to toggle source
# File lib/gather_content/api/account.rb, line 22 def params; end
path()
click to toggle source
# File lib/gather_content/api/account.rb, line 18 def path @path ||= "/accounts/#{account_id}" end