genome/dgi-db

View on GitHub
app/presenters/claim_attribute_presenter.rb

Summary

Maintainability
A
0 mins
Test Coverage
class ClaimAttributePresenter < SimpleDelegator
  attr_accessor :attribute
  def initialize(attribute)
    @attribute = attribute
    super
  end

  def as_json
    {
      name: self.name,
      value: self.value,
    }
  end
end