class Appdynamics::Tier
Constants
- ATTRIBUTES
Attributes
application[RW]
controller[RW]
Public Class Methods
from_hash(hsh, controller, application)
click to toggle source
# File lib/appdynamics/tier.rb, line 23 def self.from_hash hsh, controller, application Tier.new controller, application, hsh end
new(controller, application, attrs)
click to toggle source
# File lib/appdynamics/tier.rb, line 8 def initialize controller, application, attrs @application = application @controller = controller attrs.keys.each do |key| self.send "#{key}=", attrs[key] end end
Public Instance Methods
relative_route(*_)
click to toggle source
# File lib/appdynamics/tier.rb, line 27 def relative_route *_ "#{application.relative_route}/tiers/#{id}" end
to_hash()
click to toggle source
# File lib/appdynamics/tier.rb, line 16 def to_hash ATTRIBUTES.inject({}){|hsh, attr| hsh[attr] = self.send(attr) hsh } end