class Message::Image

添付画像

Constants

IS_URL

Attributes

resource[R]
url[RW]

Public Class Methods

new(resource) click to toggle source
# File core/message.rb, line 717
def initialize(resource)
  if(not resource.is_a?(IO)) and (FileTest.exist?(resource.to_s)) then
    @resource = open(resource)
  else
    @resource = resource
    if((IS_URL === resource) != nil) then
      @url = resource
    end
  end
end

Public Instance Methods

path() click to toggle source
# File core/message.rb, line 728
def path
  if(@resource.is_a?(File)) then
    return @resource.path
  end
  return @url
end