class JSONAPI::Document::Resource::Attributes::Attribute
An individual attribute in a JSON:API Attributes
object
Attributes
field[R]
Public Class Methods
new(name, value, type: String)
click to toggle source
@param name [String] The name of an attribute @param value [String] The value of an attribute @param type [Any] The type of an attribute value
Calls superclass method
JSONAPI::NameValuePair::new
# File lib/easy/jsonapi/document/resource/attributes/attribute.rb, line 20 def initialize(name, value, type: String) @field = JSONAPI::Field.new(name, type: type) super(name, value) end