Sha256: f4c72354dc94180178aeb99cd10816a4195d22a2a12753abf8d2ca6b55ee54dd

Contents?: true

Size: 589 Bytes

Versions: 5

Compression:

Stored size: 589 Bytes

Contents

module FreeboxApi

  module Configuration

    class Freeplug

      def initialize(session, id)
        @session = session
	@id = id
      end

      def self.network(session)
        session.http_call('get', '/freeplug/')
      end

      def self.show(session, id)
        session.http_call('get', "/freeplug/#{id}/")
      end

      def show
        self.class.show(@session, @id)
      end

      def self.reset(session, id)
        session.http_call('post', "/freeplug/#{id}/reset/")
      end

      def reset
        self.class.reset(@session, @id)
      end

    end

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
freebox_api-0.2.4 lib/freebox_api/configuration/freeplug.rb
freebox_api-0.2.3 lib/freebox_api/configuration/freeplug.rb
freebox_api-0.2.2 lib/freebox_api/configuration/freeplug.rb
freebox_api-0.2.1 lib/freebox_api/configuration/freeplug.rb
freebox_api-0.2.0 lib/freebox_api/configuration/freeplug.rb