Exception: Etsy::EtsyJSONInvalid

Inherits:
StandardError
  • Object
show all
Defined in:
lib/etsy/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ EtsyJSONInvalid

Returns a new instance of EtsyJSONInvalid.



11
12
13
14
# File 'lib/etsy/response.rb', line 11

def initialize(args)
  @code = args[:code]
  @data = args[:data]
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



10
11
12
# File 'lib/etsy/response.rb', line 10

def code
  @code
end

#dataObject (readonly)

Returns the value of attribute data.



10
11
12
# File 'lib/etsy/response.rb', line 10

def data
  @data
end