class Azure::ServiceBus::RuleAspect
Public Class Methods
from_hash(hash)
click to toggle source
# File lib/azure/service_bus/rule_aspect.rb, line 27 def self.from_hash(hash) hash = {} unless hash type = hash[:type] Azure::ServiceBus.const_get(type).new(hash) if type end
new() { |self| ... }
click to toggle source
# File lib/azure/service_bus/rule_aspect.rb, line 18 def initialize() yield self if block_given? end
Public Instance Methods
to_hash(hash={})
click to toggle source
# File lib/azure/service_bus/rule_aspect.rb, line 22 def to_hash(hash={}) hash[:type]=self.class.name.split('::').last hash end