Class: Smartdict::Info

Inherits:
Struct
  • Object
show all
Includes:
Singleton
Defined in:
lib/smartdict/info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeInfo

Returns a new instance of Info.



7
8
9
10
11
12
# File 'lib/smartdict/info.rb', line 7

def initialize
  self.version = Smartdict::VERSION
  self.author  = "Sergey Potapov"
  self.email   = "[email protected]"
  self.url     = "http://smartdict.net"
end

Instance Attribute Details

#authorObject

Returns the value of attribute author

Returns:

  • (Object)

    the current value of author



4
5
6
# File 'lib/smartdict/info.rb', line 4

def author
  @author
end

#emailObject

Returns the value of attribute email

Returns:

  • (Object)

    the current value of email



4
5
6
# File 'lib/smartdict/info.rb', line 4

def email
  @email
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



4
5
6
# File 'lib/smartdict/info.rb', line 4

def url
  @url
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



4
5
6
# File 'lib/smartdict/info.rb', line 4

def version
  @version
end