class NexosisApi::Link

Class to parse hypermedia resutls

Attributes

href[RW]

resource url @return [String]

rel[RW]

relation type of the link @return [String]

Public Class Methods

new(link_hash) click to toggle source
# File lib/nexosis_api/link.rb, line 4
def initialize(link_hash)
  link_hash.each do |k, v|
    instance_variable_set("@#{k}", v) unless v.nil?
  end
end