Class: Dev::BloomGrowth::User
- Defined in:
- lib/firespring_dev_commands/bloom_growth/user.rb
Overview
Class containing user information
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#direct_reports ⇒ Object
Returns the value of attribute direct_reports.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#rocks ⇒ Object
Returns the value of attribute rocks.
-
#seats ⇒ Object
Returns the value of attribute seats.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(data) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(data) ⇒ User
Returns a new instance of User.
7 8 9 10 11 12 13 14 15 |
# File 'lib/firespring_dev_commands/bloom_growth/user.rb', line 7 def initialize(data) @data = data @id = data['Id'] @type = data['Type'] @name = data['Name'].to_s.strip @rocks = nil @direct_reports = nil @seats = nil end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
5 6 7 |
# File 'lib/firespring_dev_commands/bloom_growth/user.rb', line 5 def data @data end |
#direct_reports ⇒ Object
Returns the value of attribute direct_reports.
5 6 7 |
# File 'lib/firespring_dev_commands/bloom_growth/user.rb', line 5 def direct_reports @direct_reports end |
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/firespring_dev_commands/bloom_growth/user.rb', line 5 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/firespring_dev_commands/bloom_growth/user.rb', line 5 def name @name end |
#rocks ⇒ Object
Returns the value of attribute rocks.
5 6 7 |
# File 'lib/firespring_dev_commands/bloom_growth/user.rb', line 5 def rocks @rocks end |
#seats ⇒ Object
Returns the value of attribute seats.
5 6 7 |
# File 'lib/firespring_dev_commands/bloom_growth/user.rb', line 5 def seats @seats end |
#type ⇒ Object
Returns the value of attribute type.
5 6 7 |
# File 'lib/firespring_dev_commands/bloom_growth/user.rb', line 5 def type @type end |