Class: VideoEmbed::ThirdPartyAPI

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeThirdPartyAPI

Returns a new instance of ThirdPartyAPI.



4
5
6
# File 'lib/video_embed/third_party_api.rb', line 4

def initialize
  @read_count = 0
end

Instance Attribute Details

#read_countObject (readonly)

Returns the value of attribute read_count.



3
4
5
# File 'lib/video_embed/third_party_api.rb', line 3

def read_count
  @read_count
end

Instance Method Details

#get_requestObject



7
8
9
# File 'lib/video_embed/third_party_api.rb', line 7

def get_request
  @read_count += 1
end