class Opbeat::Interface
Public Class Methods
name(value = nil)
click to toggle source
# File lib/opbeat/interfaces.rb, line 19 def self.name(value = nil) @interface_name ||= value end
new(attributes = nil) { |self| ... }
click to toggle source
# File lib/opbeat/interfaces.rb, line 11 def initialize(attributes = nil) attributes.each do |attr, value| send "#{attr}=", value end if attributes yield self if block_given? end