Class: ICat4JSON::ICat4JSON

Inherits:
Object
  • Object
show all
Defined in:
lib/icat4json.rb

Defined Under Namespace

Classes: ICATData, ItemData

Constant Summary collapse

MAX_RESPONSE_SIZE =
1_048_576

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeICat4JSON

Returns a new instance of ICat4JSON.



19
20
21
22
23
# File 'lib/icat4json.rb', line 19

def initialize
  raw = fetch_feed
  @json = parse_json(raw)
  @icat = build_icat_data(@json)
end

Instance Attribute Details

#icatObject (readonly)

Returns the value of attribute icat.



12
13
14
# File 'lib/icat4json.rb', line 12

def icat
  @icat
end

#jsonObject (readonly)

Returns the value of attribute json.



12
13
14
# File 'lib/icat4json.rb', line 12

def json
  @json
end