Class: Fluxiom::Account
Instance Attribute Summary
Attributes inherited from Fluxiom
#base_url
Instance Method Summary
collapse
Methods inherited from Fluxiom
#account, call, post_call, #tags, #users
Constructor Details
#initialize(options = {}) ⇒ Account
2
3
4
5
6
7
|
# File 'lib/fluxapi/account.rb', line 2
def initialize(options = {})
self.class.call('/api/account.xml')['account'].each do |k, v|
self.instance_variable_set("@#{k}", v)
self.class.send(:define_method, k, proc{self.instance_variable_get("@#{k}")})
end
end
|
Instance Method Details
#assets ⇒ Object
8
9
10
|
# File 'lib/fluxapi/account.rb', line 8
def assets
Fluxiom::Assets.new
end
|
#has_branding? ⇒ Boolean
11
12
13
|
# File 'lib/fluxapi/account.rb', line 11
def has_branding?
self.branding == 'active'
end
|