VelocityStrategies/ruby-salsa_labs

View on GitHub
lib/salsa_labs/salsa_object.rb

Summary

Maintainability
A
0 mins
Test Coverage
module SalsaLabs
  ##
  # Base class used for subclasses that can be represented by Salsa Labs
  # concepts that can be returned by getObject or getObjects.
  ##
  class SalsaObject

    attr_reader :attributes

    def initialize(params)
      @attributes = params
    end

    def organization_key
      (attributes['organization_key'] || 0).to_i
    end

  end
end