class Stele::Resource
Attributes
attributes_definition[R]
operations[R]
Public Class Methods
build(**args)
click to toggle source
# File lib/stele/resource.rb, line 4 def self.build(**args) i = new(**args) { 'attributes' => i.attributes, 'operations' => i.operations } end
new(attributes:, operations:)
click to toggle source
# File lib/stele/resource.rb, line 15 def initialize(attributes:, operations:) @attributes_definition = attributes @operations = operations end
Public Instance Methods
attributes()
click to toggle source
# File lib/stele/resource.rb, line 20 def attributes @attributes_definition.keys end