class MoesifApi::StatusModel
Attributes
region[RW]
Location @return [String]
status[RW]
Status of Call @return [Boolean]
Public Class Methods
from_hash(hash)
click to toggle source
Creates an instance of the object from a hash
# File lib/moesif_api/models/status_model.rb, line 30 def self.from_hash(hash) if hash == nil nil else # Extract variables from the hash status = hash["status"] region = hash["region"] # Create object from extracted values StatusModel.new(status, region) end end
names()
click to toggle source
A mapping from model property names to API property names
# File lib/moesif_api/models/status_model.rb, line 14 def self.names if @hash.nil? @hash = {} @hash["status"] = "status" @hash["region"] = "region" end @hash end
new(status = nil, region = nil)
click to toggle source
# File lib/moesif_api/models/status_model.rb, line 23 def initialize(status = nil, region = nil) @status = status @region = region end