class DPLibrary::Provider

Attributes

id[RW]
name[RW]

Public Class Methods

new(hash) click to toggle source
# File lib/DPLibrary/provider.rb, line 6
def initialize(hash)
  set_values(hash)
end

Private Instance Methods

set_values(hash) click to toggle source
# File lib/DPLibrary/provider.rb, line 11
def set_values(hash)
  self.id   = hash['@id']
  self.name = hash['name']
end