Class: ICat4JSON::ICat4JSON
- Inherits:
-
Object
- Object
- ICat4JSON::ICat4JSON
- Defined in:
- lib/icat4json.rb
Defined Under Namespace
Constant Summary collapse
- MAX_RESPONSE_SIZE =
1_048_576
Instance Attribute Summary collapse
-
#icat ⇒ Object
readonly
Returns the value of attribute icat.
-
#json ⇒ Object
readonly
Returns the value of attribute json.
Instance Method Summary collapse
-
#initialize ⇒ ICat4JSON
constructor
A new instance of ICat4JSON.
Constructor Details
#initialize ⇒ ICat4JSON
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
#icat ⇒ Object (readonly)
Returns the value of attribute icat.
12 13 14 |
# File 'lib/icat4json.rb', line 12 def icat @icat end |
#json ⇒ Object (readonly)
Returns the value of attribute json.
12 13 14 |
# File 'lib/icat4json.rb', line 12 def json @json end |