diff --git a/lib/noko_cli/entries.rb b/lib/noko_cli/entry.rb similarity index 97% rename from lib/noko_cli/entries.rb rename to lib/noko_cli/entry.rb index b4c931a..59f9cd9 100644 --- a/lib/noko_cli/entries.rb +++ b/lib/noko_cli/entry.rb @@ -4,7 +4,7 @@ module NokoCli # This is an entry resource, which could be listed - class Entries + class Entry attr_reader :conn def initialize(config:) diff --git a/lib/noko_cli/run.rb b/lib/noko_cli/run.rb index b704880..20917ba 100644 --- a/lib/noko_cli/run.rb +++ b/lib/noko_cli/run.rb @@ -4,7 +4,7 @@ module NokoCli class Run # :nodoc: def self.call @config ||= Config.new - Entries.new(config: @config).list + Entry.new(config: @config).list end end end diff --git a/spec/noko_cli/entries_spec.rb b/spec/noko_cli/entry_spec.rb similarity index 96% rename from spec/noko_cli/entries_spec.rb rename to spec/noko_cli/entry_spec.rb index 60ae94e..d9d5281 100644 --- a/spec/noko_cli/entries_spec.rb +++ b/spec/noko_cli/entry_spec.rb @@ -3,7 +3,7 @@ require "faraday" require "json" -RSpec.describe NokoCli::Entries do +RSpec.describe NokoCli::Entry do describe "#list" do let(:stubs) do stub_request("current_user/entries", response: stub_response(fixture: "entries/list"))