Class: Cb::Models::WorkStatus
- Inherits:
-
Object
- Object
- Cb::Models::WorkStatus
- Defined in:
- lib/cb/models/implementations/work_status.rb
Defined Under Namespace
Classes: Translation
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#translations ⇒ Object
Returns the value of attribute translations.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ WorkStatus
constructor
A new instance of WorkStatus.
Constructor Details
#initialize(args = {}) ⇒ WorkStatus
Returns a new instance of WorkStatus.
16 17 18 19 20 |
# File 'lib/cb/models/implementations/work_status.rb', line 16 def initialize(args = {}) return if args.nil? @key = args['Key'] || '' @translations = [args['Description']].flatten.map { |translation| Translation.new translation } end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
14 15 16 |
# File 'lib/cb/models/implementations/work_status.rb', line 14 def key @key end |
#translations ⇒ Object
Returns the value of attribute translations.
14 15 16 |
# File 'lib/cb/models/implementations/work_status.rb', line 14 def translations @translations end |