Class: Imgurapi::Api::Base

Inherits:
Struct
  • Object
show all
Defined in:
lib/imgurapi/api/base.rb

Direct Known Subclasses

Account, Image

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#sessionObject

Returns the value of attribute session

Returns:

  • (Object)

    the current value of session



3
4
5
# File 'lib/imgurapi/api/base.rb', line 3

def session
  @session
end

Instance Method Details

#communicationObject



5
6
7
# File 'lib/imgurapi/api/base.rb', line 5

def communication
  Communication.new(session)
end