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