Method: PureCloud::WorkspaceCreate#initialize
- Defined in:
- lib/purecloud/models/workspace_create.rb
#initialize(attributes = {}) ⇒ WorkspaceCreate
Returns a new instance of WorkspaceCreate.
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/purecloud/models/workspace_create.rb', line 29 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} if attributes[:'name'] self.name = attributes[:'name'] end if attributes[:'bucket'] self.bucket = attributes[:'bucket'] end end |