Class: Jpzip::Endpoints

Inherits:
Data
  • Object
show all
Defined in:
lib/jpzip/types.rb

Overview

Endpoints is part of /meta.json.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#groupObject (readonly)

Returns the value of attribute group

Returns:

  • (Object)

    the current value of group



54
55
56
# File 'lib/jpzip/types.rb', line 54

def group
  @group
end

#prefixObject (readonly)

Returns the value of attribute prefix

Returns:

  • (Object)

    the current value of prefix



54
55
56
# File 'lib/jpzip/types.rb', line 54

def prefix
  @prefix
end

Class Method Details

.from_hash(h) ⇒ Object



55
56
57
# File 'lib/jpzip/types.rb', line 55

def self.from_hash(h)
  new(group: h["group"] || "", prefix: h["prefix"] || "")
end