Class: Hisui::User

Inherits:
Object
  • Object
show all
Defined in:
lib/hisui/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(access_token) ⇒ User

Returns a new instance of User.



5
6
7
# File 'lib/hisui/user.rb', line 5

def initialize(access_token)
  @access_token = access_token
end

Instance Attribute Details

#access_tokenObject

Returns the value of attribute access_token.



3
4
5
# File 'lib/hisui/user.rb', line 3

def access_token
  @access_token
end

Instance Method Details

#account_summariesObject



14
15
16
# File 'lib/hisui/user.rb', line 14

def 
  Management::AccountSummary.all(self)
end

#accountsObject

All the ‘Account` records available to this user



10
11
12
# File 'lib/hisui/user.rb', line 10

def accounts
  Management::Account.all(self)
end

#profilesObject

All the ‘Profile` records available to this user



19
20
21
# File 'lib/hisui/user.rb', line 19

def profiles
  Management::Profile.all(self)
end

#segmentsObject

All the ‘Segment` records available to this user



24
25
26
# File 'lib/hisui/user.rb', line 24

def segments
  Management::Segment.all(self)
end

#web_propertiesObject

All the ‘WebProperty` records available to this user



29
30
31
# File 'lib/hisui/user.rb', line 29

def web_properties
  Management::WebProperty.all(self)
end