Class: TingYun::Support::Collector

Inherits:
Struct
  • Object
show all
Defined in:
lib/ting_yun/support/collector.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



7
8
9
# File 'lib/ting_yun/support/collector.rb', line 7

def name
  @name
end

#portObject

Returns the value of attribute port

Returns:

  • (Object)

    the current value of port



7
8
9
# File 'lib/ting_yun/support/collector.rb', line 7

def port
  @port
end

Instance Method Details

#to_sObject



8
# File 'lib/ting_yun/support/collector.rb', line 8

def to_s; "#{name}:#{port}"; end