Skip to content

Commit 56133bf

Browse files
authored
Merge pull request #76 from mackerelio/orgs-display_name
Add `displayName` to `Organization`
2 parents 81877c3 + 34c4493 commit 56133bf

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

lib/mackerel/organization.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
module Mackerel
22
class Organization
3-
attr_accessor :name
3+
attr_accessor :name, :displayName
44
def initialize(args = {})
55
@name = args["name"]
6+
@displayName = args["displayName"]
67
end
78

89
def to_h

spec/mackerel/organization_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
let(:organization) {
2626
{
2727
"name" => "HogeH",
28+
"displayName" => "Fuga",
2829
}
2930
}
3031

0 commit comments

Comments
 (0)