module ApiConsumer::Base::Initializer
Public Class Methods
new(attributes = {}, persisted = false)
click to toggle source
Calls superclass method
# File lib/api_consumer.rb, line 30 def initialize(attributes = {}, persisted = false) if Attributes::Base.new(attributes).standardized? attributes = attributes.fetch('data') end super attributes, persisted end