Class: Heroku::Model::Account
- Inherits:
-
Struct
- Object
- Struct
- Heroku::Model::Account
- Includes:
- API::Password, API::RateLimits, ModelHelper
- Defined in:
- lib/heroku/model/account.rb
Constant Summary
Constants included from API::RateLimits
API::RateLimits::RESOURCE_TYPE
Instance Attribute Summary collapse
-
#allow_tracking ⇒ Object
Returns the value of attribute allow_tracking.
-
#beta ⇒ Object
Returns the value of attribute beta.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#email ⇒ Object
Returns the value of attribute email.
-
#id ⇒ Object
Returns the value of attribute id.
-
#last_login ⇒ Object
Returns the value of attribute last_login.
-
#parent ⇒ Object
Returns the value of attribute parent.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
-
#verified ⇒ Object
Returns the value of attribute verified.
Instance Method Summary collapse
- #identifiable ⇒ Object
-
#initialize(params = {}) ⇒ Account
constructor
A new instance of Account.
- #inspect ⇒ Object
- #patchable ⇒ Object
- #save ⇒ Object
Methods included from API::RateLimits
Methods included from API::Password
Methods included from ModelHelper
#identifier, #struct_init_from_hash, #sub_struct_as_hash
Constructor Details
#initialize(params = {}) ⇒ Account
Returns a new instance of Account.
27 28 29 |
# File 'lib/heroku/model/account.rb', line 27 def initialize(params = {}) super(*struct_init_from_hash(params)) end |
Instance Attribute Details
#allow_tracking ⇒ Object
Returns the value of attribute allow_tracking
7 8 9 |
# File 'lib/heroku/model/account.rb', line 7 def allow_tracking @allow_tracking end |
#beta ⇒ Object
Returns the value of attribute beta
7 8 9 |
# File 'lib/heroku/model/account.rb', line 7 def beta @beta end |
#created_at ⇒ Object
Returns the value of attribute created_at
7 8 9 |
# File 'lib/heroku/model/account.rb', line 7 def created_at @created_at end |
#email ⇒ Object
Returns the value of attribute email
7 8 9 |
# File 'lib/heroku/model/account.rb', line 7 def email @email end |
#id ⇒ Object
Returns the value of attribute id
7 8 9 |
# File 'lib/heroku/model/account.rb', line 7 def id @id end |
#last_login ⇒ Object
Returns the value of attribute last_login
7 8 9 |
# File 'lib/heroku/model/account.rb', line 7 def last_login @last_login end |
#parent ⇒ Object
Returns the value of attribute parent
7 8 9 |
# File 'lib/heroku/model/account.rb', line 7 def parent @parent end |
#updated_at ⇒ Object
Returns the value of attribute updated_at
7 8 9 |
# File 'lib/heroku/model/account.rb', line 7 def updated_at @updated_at end |
#verified ⇒ Object
Returns the value of attribute verified
7 8 9 |
# File 'lib/heroku/model/account.rb', line 7 def verified @verified end |
Instance Method Details
#identifiable ⇒ Object
35 36 37 |
# File 'lib/heroku/model/account.rb', line 35 def identifiable sub_struct_as_hash(:id, :email) end |
#inspect ⇒ Object
23 24 25 |
# File 'lib/heroku/model/account.rb', line 23 def inspect "#<#{self.class.name} #{identifier}>" end |
#patchable ⇒ Object
31 32 33 |
# File 'lib/heroku/model/account.rb', line 31 def patchable sub_struct_as_hash(:email, :allow_tracking) end |
#save ⇒ Object
39 40 41 |
# File 'lib/heroku/model/account.rb', line 39 def save parent.update_account(self) end |