Class: Glosbe::Author

Inherits:
Object
  • Object
show all
Defined in:
lib/glosbe/author.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Author

Returns a new instance of Author.



5
6
7
8
9
10
# File 'lib/glosbe/author.rb', line 5

def initialize(data)
  @id = data["id"]
  @name = data["N"]
  @source = data["U"]
  @url = data["url"]
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'lib/glosbe/author.rb', line 3

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/glosbe/author.rb', line 3

def name
  @name
end

#sourceObject (readonly)

Returns the value of attribute source.



3
4
5
# File 'lib/glosbe/author.rb', line 3

def source
  @source
end

#urlObject (readonly)

Returns the value of attribute url.



3
4
5
# File 'lib/glosbe/author.rb', line 3

def url
  @url
end