class Beaver::TransactionRecordNonExpanded
TransactionRecordNonExpanded
Model.
Attributes
id[RW]
TODO: Write general description for this method @return [String]
path[RW]
TODO: Write general description for this method @return [String]
resource[RW]
TODO: Write general description for this method @return [String]
Public Class Methods
from_hash(hash)
click to toggle source
Creates an instance of the object from a hash.
# File lib/beaver/models/transaction_record_non_expanded.rb, line 39 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. id = hash['id'] path = hash['path'] resource = hash['resource'] # Create object from extracted values. TransactionRecordNonExpanded.new(id, path, resource) end
names()
click to toggle source
A mapping from model property names to API property names.
# File lib/beaver/models/transaction_record_non_expanded.rb, line 22 def self.names @_hash = {} if @_hash.nil? @_hash['id'] = 'id' @_hash['path'] = 'path' @_hash['resource'] = 'resource' @_hash end
new(id = nil, path = nil, resource = nil)
click to toggle source
# File lib/beaver/models/transaction_record_non_expanded.rb, line 30 def initialize(id = nil, path = nil, resource = nil) @id = id @path = path @resource = resource end