Class: Hisui::User
- Inherits:
-
Object
- Object
- Hisui::User
- Defined in:
- lib/hisui/user.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
Instance Method Summary collapse
- #account_summaries ⇒ Object
-
#accounts ⇒ Object
All the ‘Account` records available to this user.
-
#initialize(access_token) ⇒ User
constructor
A new instance of User.
-
#profiles ⇒ Object
All the ‘Profile` records available to this user.
-
#segments ⇒ Object
All the ‘Segment` records available to this user.
-
#web_properties ⇒ Object
All the ‘WebProperty` records available to this user.
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_token ⇒ Object
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_summaries ⇒ Object
14 15 16 |
# File 'lib/hisui/user.rb', line 14 def account_summaries Management::AccountSummary.all(self) end |
#accounts ⇒ Object
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 |
#profiles ⇒ Object
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 |
#segments ⇒ Object
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_properties ⇒ Object
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 |