Sha256: 7aec7035d96ef3d559cee93198a188cc319a18a1ef89f78620b7e7993243cd87

Contents?: true

Size: 275 Bytes

Versions: 6

Compression:

Stored size: 275 Bytes

Contents

class Person
  extend  ActiveModel::Naming
  include ActiveModel::Serializers::Xml

  attr_accessor :name, :email

  def initialize(hash)
    hash.each do |key, value|
      instance_variable_set("@#{key}", value)
    end
  end

  def attributes
    instance_values
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
jasper-rails-2.0.0.beta1 spec/internal/app/models/person.rb
obrientimothya-jasper-rails-0.0.2 spec/internal/app/models/person.rb
obrientimothya-jasper-rails-0.0.1 spec/internal/app/models/person.rb
jasper-rails-1.0.3 spec/internal/app/models/person.rb
jasper-rails-1.0.2 spec/internal/app/models/person.rb
jasper-rails-1.0.1 spec/internal/app/models/person.rb