Sha256: d90bd2f2b78d11ef7bab94a7957e07f8c51eedbaf1ab7eb7df648279d4ec2a58
Contents?: true
Size: 513 Bytes
Versions: 5
Compression:
Stored size: 513 Bytes
Contents
module Protolink class Node attr_reader :id, :uuid, :name, :description def initialize(connection, attributes = {}) @connection = connection @id = attributes['id'] @uuid = attributes['uuid'] @name = attributes['name'] @description = attributes['description'] @loaded = false end def coupled? connection.get("/api/v1/couplings/#{id}") end protected def connection @connection end end end
Version data entries
5 entries across 5 versions & 1 rubygems