Skip to content

Commit

Permalink
lint a random file
Browse files Browse the repository at this point in the history
  • Loading branch information
osc-bot committed Oct 7, 2023
1 parent a6ddcb4 commit 201f656
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# frozen_string_literal: true

module SmartAttributes
class AttributeFactory
# Build this attribute object with defined options
# @param opts [Hash] attribute's options
# @return [Attributes::BCAccount] the attribute object
def self.build_bc_account(opts = {})
Attributes::BcAccount.new("bc_account", opts)
Attributes::BcAccount.new('bc_account', opts)
end
end

Expand All @@ -13,14 +15,14 @@ class BcAccount < Attribute
# Type of form widget used for this attribute
# @return [String] widget type
def widget
(opts[:widget] || "text_field").to_s
(opts[:widget] || 'text_field').to_s
end

# Form label for this attribute
# @param fmt [String, nil] formatting of form label
# @return [String] form label
def label(fmt: nil)
(opts[:label] || "Account").to_s
(opts[:label] || 'Account').to_s
end

# Submission hash describing how to submit this attribute
Expand Down

0 comments on commit 201f656

Please sign in to comment.