class Nvlope::Client
Attributes
description[R]
id[R]
image_url[R]
name[R]
nvlope[R]
raw[R]
url[R]
Public Class Methods
new(nvlope, raw)
click to toggle source
# File lib/nvlope/client.rb, line 3 def initialize nvlope, raw @nvlope = nvlope @id = raw['id'] @name = raw['name'] @description = raw['description'] @url = raw['url'] @image_url = raw['image_url'] end
Public Instance Methods
inspect()
click to toggle source
# File lib/nvlope/client.rb, line 23 def inspect values = to_hash.map{|k,v| "#{k}: #{v.inspect}" }.join(', ') %(#<#{self.class} #{values}>) end
to_hash()
click to toggle source
# File lib/nvlope/client.rb, line 13 def to_hash { id: id, name: name, description: description, url: url, image_url: image_url, } end