Module: Linodians

Defined in:
lib/linodians.rb,
lib/linodians/group.rb,
lib/linodians/version.rb,
lib/linodians/employee.rb

Overview

Define the version

Defined Under Namespace

Classes: Employee, Group

Constant Summary collapse

DATA_URL =
'https://www.linode.com/about'.freeze
PHOTO_URL =
'https://www.linode.com/media/images/employees/%s.png'.freeze
VERSION =
'1.1.1'.freeze

Class Method Summary collapse

Class Method Details

.load_data(data = nil) ⇒ Object



19
20
21
# File 'lib/linodians.rb', line 19

def load_data(data = nil)
  (data || download_data).map { |x| Employee.new x }
end

.new(*args) ⇒ Object

Insert a helper .new() method for creating a new Group object



15
16
17
# File 'lib/linodians.rb', line 15

def new(*args)
  self::Group.new(*args)
end