class HttpModel

Constants

DEFAULT_OPTIONS

Attributes

ip[RW]
port[RW]
serviceName[RW]
serviceType[RW]

Public Class Methods

new(options) click to toggle source
# File lib/reminder-client/http_model.rb, line 13
def initialize(options)
  raise "initialize HttpModel error, options can not be nil." if options == nil 
  #@options = DEFAULT_OPTIONS.merge(options)
  @ip = options[:ip]
  @port = options[:port]
  @serviceType = options[:serviceType]
  @serviceName = options[:serviceName]
end

Public Instance Methods

to_hash() click to toggle source
# File lib/reminder-client/http_model.rb, line 22
def to_hash
  {
  :ip => @ip,
  :port => @port,
  :serviceType => @serviceType,
  :serviceName => @serviceName,    
  }
end