class Beaver::Documentation
Documentation
Model.
Attributes
documents[RW]
TODO: Write general description for this method @return [List of String]
explanation[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/documentation.rb, line 32 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. documents = hash['documents'] explanation = hash['explanation'] # Create object from extracted values. Documentation.new(documents, explanation) end
names()
click to toggle source
A mapping from model property names to API property names.
# File lib/beaver/models/documentation.rb, line 18 def self.names @_hash = {} if @_hash.nil? @_hash['documents'] = 'documents' @_hash['explanation'] = 'explanation' @_hash end
new(documents = nil, explanation = nil)
click to toggle source
# File lib/beaver/models/documentation.rb, line 25 def initialize(documents = nil, explanation = nil) @documents = documents @explanation = explanation end